Legacy Knowledge Base
Published Jul. 2, 2025

Landing page redirection is not working after SAML configuration

Written By

Ankit Gupta

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • Once the SAML is configured the Landing Page redirection is not redirecting to the desired page.

Environment

  • Liferay DXP 7.1

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 ?

Legacy Knowledge Base