Hello there.

Did you find a solution for this? It tried to achieve the same in a Model 
class. I think the response status must be set after the sendRedirect() method 
but it still does not work.

This is my java code:

final WebContext webContext = MgnlContext.getWebContext();
webContext.getResponse().sendRedirect(link);
webContext.getResponse().setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);

Best regards
Pierre

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=7c60af4b-1330-41f9-8cb1-096f21ffa622


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <user-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to