redirect (forwardTo : string) : void

redirect” enables automatic forwarding to another page.

In the example, forwarding to the welcome page is to take place.

<xsl:variable name="home">onion://data/objects/77</xsl:variable>
<xsl:value-of select="web:redirect(c.literalUri($home))" />

If an absolute url is set for forwardTo, that does not match the current domain, incorrect redirects can occure, in association with the iis module ARR (Application Request Routing). The domain of the given url may be rewritten to the current domain, if "Reverse rewrite host in response headers" is set within the proxy settings of the webfarm.