Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Redirection issue using ContextRedirectForwardAction
anuj7700
Hi All,
I want to use ContextRedirectForwardAction to redirect from 1 page to another page alongwith context information.
We have 2 pages FAQ.page and FAQDetail.page both located in the root directory of testsite. From a component controller on FAQ.page we want to redirect to FAQDetail.page. From the controller if I return new URLRedirectForwardAction(context, $PAGE_LINK[FAQDetail]); redirection happens but that is a 302 client redirect so we loose the information in Request Context
We tried using following options but all of them fail
1. return new ContextRedirectForwardAction ("testsite/FAQDetail.page", false); - response : Error 404: SRVE0190E: File not found: /testsite/testsite/FAQDetail.page
2. return new ContextRedirectForwardAction ("FAQDetail.page", false); - response : Error 404: SRVE0190E: File not found: /testsite/FAQDetail.page
3. return new ContextRedirectForwardAction ("FAQDetail.page", true); - response : Error 404: SRVE0190E: File not found: //FAQDetail.page
4. return new ContextRedirectForwardAction ("testsite/FAQDetail.page", true); - response : Error 404: SRVE0190E: File not found: //testsite/FAQDetail.page
All of the above fail with 404, page not found error as shown in the responses above. Has anyone does the page redirection successfully using ContextRedirectForwardAction. Please note we want to pass context values hence URLRedirectForwardAction is not suitable.
Find more posts tagged with
Comments
There are no comments yet