Redirects the users browser to a different URL
This method should be used in a WebTML action as it is only effective if no content has yet been sent back to the browser. It then cancels the current request (the called WebTML page is neither rendered nor sent to the browser) and directly instructs the users browser to head to the given URL.
When used in an AJAX action this method will cancel the rendering of the portlet and trigger a reload of the complete webpage.
For backward compatibility there still is a method "redirectTo()" available on TMLContext whose use is discouraged since OpenWGA 5.3.
URL to which to redirect the users browser
|Allowed in script types||
This method is mostly combined with URL generating functionalities of TMLScript, like method this.contentURL(). The following code redirects the browser to the document of the unique name "main":