Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Redirect to Intended Private Page After Login in Liferay DXP
I have developed a custom public login and registration page on the Liferay 7.4 2024.Q3.5 DXP platform. The following workflow is currently in place:
- Accessing a Private Page: When a user attempts to access a private page without being logged in, they are correctly redirected to the custom public login page.
- Post-Login Redirection Issue: After successfully logging in, instead of being redirected back to the originally requested private page, the user is taken to the Home page.
Expected Behavior: After logging in, the user should be redirected to the specific private page they initially tried to access, ensuring a seamless user experience.
What configuration changes or code adjustments are necessary in Liferay DXP to ensure that after logging in, users are redirected to the private page they originally attempted to access instead of the Home page?
This is probably caused by the same logic that redirects you after timeout to the login page, then always straight to the home page after successful login. It used to be that you could log in and still be in the page/application. I don't know of configuration that can change this. If I recall it's a security decision to lose this convenience, and I'm not aware of configuration to change the behavior. Perhaps you could create a feature request. To do that just make a forum post in the General > Feature Requests category.
Powered by Liferay™