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
- Setting the language to a Liferay Page: What Language is Set for Liferay's Web Pages
- For more info, please see: Why does Language selector update the User