legacy-knowledge-base
公開されました Jul. 2, 2025

Liferay Commerce、製品ウィジェット: ブラウザの [戻る] ボタンを押すとページ設定が失われる

written-by

Phil Chapman

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

learn-legacy-article-disclaimer-text

問題

  • ブラウザーの戻るボタンを使用すると、Commerce の製品ウィジェットで、ページ配置とページ構成ごとのアイテムの両方が失われます。

    セットアップ例
    1. コントロール パネルから、Commerce > Products
    2 に移動します。 デフォルトの項目数を 1 ページあたり 4 に変更します

    6.png

    3. ページ 2
    4 をクリックします。 製品 <Brake Rotors> をクリックして詳細ページを開きます

    7.png

    5 ブラウザの戻るボタンをクリックします

    結果
    製品リストの 1 ページに戻り、1 ページあたり 10 項目が表示されます

    8.png

Environment

  • DXP 7.3

解決策

  • これは、現時点で製品の既知の制限です。

    現在の実装では、永続化される値として、Page あたり items のみが定義されています。 ページの更新時または戻るボタンのクリック時に保持されない pageNumber とは異なります。

did-this-article-resolve-your-issue

legacy-knowledge-base