Issue
- I would like to set default landing pages based on user group membership so that I can redirect users to different pages on login based on their user group membership.
Environment
- Quarterly Releases
Resolution
- This is not currently possible, but there is a feature request open at LPD-37817.
Additional Information
NOTE: The following resolution requires customization and should only be implemented at the discretion of your team. Liferay Support will not be able to assist with designing or implementing customizations.
- In the meantime, it may be possible to customize the redirection after login by implementing a
login.events.post
action using an action like https://github.com/liferay/liferay-portal/blob/master/portal-impl/src/com/liferay/portal/events/DefaultLandingPageAction.java. - You would also need to add that custom action to the
login.events.post
list in yourportal-ext.properties
file.- Default
login.events.post
properties:#
# Env: LIFERAY_LOGIN_PERIOD_EVENTS_PERIOD_POST
#
login.events.post=\
com.liferay.portal.events.DefaultLandingPageAction,\
com.liferay.portal.events.LoginPostAction
- Default