Skip to content

P1: Fix scroll-position restoration on back navigation #18

Description

@hasitpbhatt

Problem: Filter/category state is URL-persisted via query params, but pressing browser Back/Forward doesn't restore scroll position to the deals section. Users land at the top of the page and have to scroll down again.

Fix:

  • Use history.scrollRestoration = 'manual'
  • Store scroll key per URL state
  • Restore scroll position after render on popstate

Files to modify:

  • js/search.js — boot function, URL update functions, add popstate listener

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions