Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
URLRedirectForwardAction in preview
fabreece
Hi,
I'm trying to redirect to another page under certain condition using a site pre-controller.
I call that:
return ( new URLRedirectForwardAction(context, "$URL_PREFIX/sites/somesite/AccessNotGranted.page" );
But in preview, the redirection displays the xml content of the AccessNotGranted.page (
..... ), not the rendered page.
How can i fix that?
-------
I found the solution, by redirecting to "$PAGE_LINK[AccessNotGranted]"
Find more posts tagged with
Comments
AlexC
Use $PAGE_LINK instead of $URL_PREFIX if you are redirecting to a page.