Landing page redirection is not working after SAML configuration
How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!
While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.
legacy-article
learn-legacy-article-disclaimer-text
Issue
- Once the SAML is configured the Landing Page redirection is not redirecting to the desired page.
Resolution
-
The pre and post-login actions (like DefaultLandingPage actions) are not compatible with AutoLogin solutions (like SAML). These pre and post-login actions are designed to work with explicit login.
The default landing page only makes sense when explicitly login in. As in it is the default landing page when you land after login in if there's no other page defined. For example, if you go to login with url /c/portal/login?redirect=/test/test you'll land on /test/test instead of the default landing page. SAML plugin for instance relies on this and it also relies on AutoLogin not redirecting the request as that would lose the sent SAML message.
It is recommended to make it happen with configuring the IdP. With SAML it is possible to provide similar functionality by passing RelayState from the IdP.
did-this-article-resolve-your-issue