Legacy Knowledge Base
Published Jul. 2, 2025

Why does Liferay inject redirectUrl to /web/guest/home in my website?

Written By

Alfonso Crisci

How To articles are not official guidelines or officially supporteddocumentation. They are community-contributed content and may not alwaysreflect the latest updates to Liferay DXP. We welcome your feedback toimprove How to articles!

While we make every effort to ensure this Knowledge Base is accurate, itmay not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with anyfeedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack"publication program, made available for informational purposes. Articlesin this program were published without a requirement for independentediting or verification and are provided "as is" withoutguarantee.

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

Issue

  • Opening the HTML source of the home page in a website made with Liferay DXP, customers may notice the following script injected:
    Liferay.Session = new Liferay.SessionBase({
    autoExtend: !0,
    redirectOnExpire: !0,
    redirectUrl: "https://www.myproductionwebsite.com/web/guest/home",
    sessionLength: 900,
    warningLength: 0
    });
  • This may be wrong as, in most of the cases, in a real-life scenario, the path /web/guest/home does not exist and, as an effect, DXP users will be brought to a non-existing page upon session expiration.

Environment

  • Liferay DXP 7.0+

Resolution

  • You may leverage the /web/guest/home part from the portal's interface: left Product Menu > Control Panel > Configuration > Instance Settings > Configuration > Navigation > Home URL where the tooltip states:

    "This is the home page of the Liferay instance. For example, if you want the home page to be http://localhost:8080/web/guest/home, set this to /web/guest/home."

Additional Information

 

 

 

 

Did this article resolve your issue ?

Legacy Knowledge Base