$redirectLink
#set ($flash = "") #set ($flash = $session.flash) #if ($flash != "") $flash #end
Clicking the link above will send an Ajax request to the server which returns a url to redirect to. The url is returned from the server in a custom response header called 'REDIRECT_URL'.

Since Ajax does not support redirects, JavaScript is used to simulate a redirect by setting the value of window.location to the redirect url.