Pre-follow Reference Item

Smartsite 7.11 - ...

Until now, items of the content type Reference returned an http response 302 to redirect the browser to the given URL. Smartsite 7.11 renders links to Reference items directly to the URL referenced by the item, saving a round trip. The new behaviour is built into the following vipers:

  • channel.link()
  • channel.crosslink()
  • html.location()
  • this.location() in ResultSet macros

All these vipers now have overloads with a boolean parameter preFollowReference to revert to the old behaviour.

To use the old behaviour across the entire site, set compatibility to Smartite 7.10 or add the app setting compatDefaultPreFollowReferenceItem to false.