April 26, 2020
Estimated Post Reading Time ~

RedirectTarget property is not working in AEM 6.2

I tried to redirect a page to another using redirectTarget page property in wcmmode=disabled in author instance.

This redirectTarget property is working on the Geomertrixx site and not on the we-retail site.

Root Cause:
Geomertrixx site is created using template /libs/foundation/components/page and we-retail site is created using wcm/foundation/components/page.

Page component under foundation path is having code to redirect to another page, whereas page component under wcm is not having code to redirect. In page.jsp we have code to redirect response.sendRedirect(redirectPath); which we don't have it in page.html.

Try these:
Try running AEM on publish runmode.
Try creating a page with sling:resourceType: foundation/components/redirect.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.