Skip to content

Maintain the state/position of the page upon returning from the product details page #83

@anoopkundal

Description

@anoopkundal

Describe the bug
When using the endless scroll option, if a user clicks on a product after scrolling to page 3 or 4 and then clicks the back button, the page does not maintain its position and always returns to page 2. To improve user experience, the page should be able to maintain its position so that the user doesn't have to scroll to the same spot again.

To Reproduce
Steps to reproduce the behavior:

  1. Open the page in endless scroll option
  2. Keep scrolling down to page 3 or 4
  3. Click on any product to open the Product Detail Page
  4. Click the browser back to go back to the PLP page
  5. The page will not maintain it's state and go back to Page 2

Expected behavior
The page should maintain the position so that the user doesn't have to scroll to that position again.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: MAC
  • Browser: Chrome
  • Version: 109.0.5414.87 (Official Build) (x86_64)

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions