Legacy Knowledge Base
公開されました Jun. 30, 2025

ブラウザの戻るボタンをクリックすると、デフォルトの言語でページを表示できない

Written By

Rishabh Agrawal

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.

問題

  • ブラウザの戻るボタンがクリックされたときに、サイトのページがデフォルトの言語で表示されるようにする。

再現の手順

1. デフォルトのLanguage SelectorテンプレートはLiferayの Home ページに追加され、デフォルトの言語は英語(en_US)です。
2. Home ページから他のページに移動する。 Page1 とし、 Page1で他の言語を選択する。
3. ブラウザの戻るボタンをクリックすると、 ホーム ページの言語が、デフォルト言語(en_US)ではなく、ユーザーが選択した言語で表示されます。

期待される動作 ブラウザの戻るボタンがクリックされると、前のページ、すなわち ホーム ページが、ユーザーが選択した言語ではなく、デフォルト言語(en_US)で表示されること。

観察された動作 ブラウザの戻るボタンがクリックされると、デフォルト言語(en_US)ではなく、ユーザーによって選択された言語に従って、前のページ、すなわち ホーム ページが表示される。

注: 以下のドライブリンクには、ポータルの実際の動作を描写したビデオが含まれています。

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

環境

  • Liferay DXP 7.4アップデート31以上

解像度

  • 観測された挙動は、製品の期待された挙動である。
  • ポータルの言語は、クリックして変更した直後に、ウィジェットで行われた言語選択に従います。

追加情報

Did this article resolve your issue ?

Legacy Knowledge Base