Redirection after checking browser url

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Redirection after checking browser url

Eric DE MAULDE
Hi,

To avoid error or multiple urls for one page (SEO) or no content
I check the browser url with the original page url
If the bowser url is wrong, i want to redirect the visitor to the right
url
I don't want to use an HTML refresh.

If a call "response.sendRedirect('newUrl')" in groovy or ftl file
I have the error "IllegalStateException"

Do you have an idea ?
There is an other solution ?

Thanks

Eric