Users have the ability to set different default home, default landing pages, and default logout landing pages. There are two places where users can make these changes; in the
portal-ext.properties
, and in the Control Panel interface.This article describes how to set the default landing page in Liferay Portal.
Resolution
Using the portal-ext.properties
- Start the portal.
- Create a site and a page.
- Copy the URL, paying attention to the portion after
/web
. (e.g./web/comm-site/page1
) - Shut down the portal.
- Set the following in the
portal-ext.properties
auth.forward.by.last.path=true
default.landing.page.path=/web/{site name}/{page name}
- Re-Start the portal.
- Sign in.
- The system will redirect the user to the default landing page without having to navigate to that site page first through the navigation dockbar.
Using the GUI
- Start the portal.
- Create a site and a page (e.g. “intranet” site and “calendar” page).
- Copy the URL, paying attention to the portion after
/web
. (e.g./web/intranet/calendar
) - Navigate to the Control Panel > Portal Settings.
- In the Default Landing Page field, enter
/web/{site name}/{page name}
. Based on the example of/web/intranet/calendar
. - Click Save.
- To test, sign out and then sign back in. The system will redirect to the new default landing page.
Setting the properties in the Control Panel GUI will override the portal-ext.properties
.
Additional Information
Setting the default landing page will not conflict with the Home URL settings. In fact, users can have a different home site and a different default landing page.