Expand my Community achievements bar.

Proper use of Sling Suffix

Avatar

Level 1

There is little documentation on suffix.  Under "URL Decomposition"; suffix "can be used to specify additional information".  Under "Locating the Script"; for URLs in other formats not ending in .html; suffix is added to the script name.

An obvious use is to write query parameters as the suffix to create a unique cacheable URL.  We've done a simple POC that uses a selector to consume the suffix.

Any advice on the use of suffix?

2 Replies

Avatar

Level 1

The link states with the use of the form selector, the suffix is treated as a path for script location resolution. This is not backed by AEM or Sling documentation. I've tested the suffix using it as a means to pass additional information, in my case as selection criteria to construct a unique cacheable URL.  It works but I'm concerned about depending on a poorly documented feature.  Thank you.