A developer must remove all selectors from linkValue.
linkValue
Assuming linkValue = 'path/page.woo.foo.html', which two HTL approaches would be used to accomplish this task?
linkValue = 'path/page.woo.foo.html'
In HTL (Sightly) URI manipulation, setting the selectors option to an empty string replaces the entire existing selector string with nothing, removing every selector from the resulting URL, while the removeSelectors option can be supplied with a comma-separated list naming each selector to strip out individually; since path/page.woo.foo.html carries the selectors 'woo' and 'foo', passing removeSelectors='foo, bar, woo' strips both existing selectors (the non-matching 'bar' is simply ignored), yielding the same selector-free result as the empty selectors assignment.
selectors
removeSelectors
path/page.woo.foo.html
removeSelectors='foo, bar, woo'
Community Discussion