Legacy Knowledge Base
Published Jul. 2, 2025

Liferay Commerce, Placed Orders Widget: Pressing Browser 'Back' Button Loses Page Settings

Written By

Phil Chapman

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

  • Using a browser's back button causes Commerce's Placed Orders Widget to lose both page placement and items per page configuration.

    Example Setup
    1. Complete 5 Commerce Orders
    2. Go to the Placed Orders screen > set the Items per Page to 4 (lowest value possible)

    4.png
    3. Navigate to Page 2
    4. Click the 'View' button to see the Order Details of the last order
    5. Press your browser's 'back button'

    Result
    Page pagination is reset to 10 items so all 5 orders are listed on Page 1

    5.png

Environment

  • DXP 7.3

Resolution

  • This is a known limitation of the product at this time.

    The current implementation hard-codes values for itemsPerPage and pageNumber, meaning the initial display values are always '10 items per page' so in the above case, all 5 orders are displayed when the page refreshes or a back button is pressed.

Did this article resolve your issue ?

Legacy Knowledge Base