Legacy Knowledge Base
Published Jun. 30, 2025

Unable to view the Page in default language when browser back button is clicked

Written By

Rishabh Agrawal

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

  • The page of the site should be visible in the default language when the browser back button is clicked.

Steps to reproduce:

1. The default Language Selector template is added to Liferay's Home page and the default language is English (en_US).
2. Navigate from the Home page to some other page; let's say Page1 and select any other language on Page1.
3. Click on the browser back button and the language of the Home page is now seen in the user’s selected language and not in the default language (en_US).

Expected Behavior: When the browser back button is clicked, the previous page i.e. Home page should be visible in the default language (en_US), not in the user’s selected language.

Observed Behavior: When the browser back button is clicked, the previous page i.e. Home page is visible according to the language selected by the user, not in the default language (en_US).

Note: The below drive link contains the video depicting the actual behavior of the portal.

https://drive.google.com/file/d/1lf742xmQu7mO-E_ebEx4259lZEX39vgl/view?usp=drive_link

Environment

  • Liferay DXP 7.4 update 31+

Resolution

  • The observed behvaior is the expected behavior of the product.
  • The language of the portal will follow the language selection done in the widget right after clicking and changing it.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base