Forum Discussion

iftomkins's avatar
11 years ago

How to implement url redirects in Freemarker?

Hi,   I've researched and found what worked for some people to achieve URL redirects with freemarker. However, it's not working for me.   The redirect portion looks like this: ${response.sendRedi...
  • HaidongG's avatar
    11 years ago

    Hi iftomkins, 

    The http.response.setRedirectUrl("<redirect url") call only works from a special freemarker Page Initialization script, you can't use that with your normal components. please check out this post