How does "company.default.home.url" property work?
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
- I don't understand how company.default.home.url in portal-ext.properties and the setting of Control Panel ->Instance Settings -> Instance Configuration -> General -> Home URL work together.
Resolution
- The company.default.home.url property provides the default value.
- If the Home URL field is left blank, the value provided in company.default.home.url will be used.
- If the field is not empty, it will take precedence over company.default.home.url.
- Example:
- If company.default.home.url=/web/guest/search and and the Home URL field is blank, the search page will be shown when you first open the portal.
- Setting the Home URL field to /home will override the company.default.home.url value, showing the home page when you first open the portal.
did-this-article-resolve-your-issue