Legacy Knowledge Base
Published Jul. 2, 2025

Incorrect Language Locale Appended to URLs for Authenticated Users

Written By

Justin Choi

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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

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

This article documents an issue where Liferay Digital Experience Platform (DXP) 7.0 stores the locale (e.g. /fr) of a guest session (that is, no one has signed in yet) and then keeps the same locale even after a user has signed in (authenticated). Users might still see /fr in the URL even if they are English (or Japanese, or Spanish) users.

The root issue is that Liferay DXP 7.0 stores information in a cookie called GUEST_LANGUAGE_ID.

Resolution

To resolve this issue, delete the cookie in the browser settings. Going to a URL with the desired locale will also change the cookie to that locale.

For example, if someone goes to localhost:8080/fr, the cookie will default to French as the preferred locale for guests on that machine. Either delete the cookie, or go to localhost:8080/en. This will change the cookie to have a default language of English.

Additional Information

Note: System administrators always have the option to enable only the locales they want using the locales.enabled= property in the portal-ext.properties file.

Did this article resolve your issue ?

Legacy Knowledge Base