Skip to content

Filters not applied after navigating back in Next.js #6697

@runebakjacobsen

Description

@runebakjacobsen

🐛 Current behavior

After applying filters, clicking on a result, and navigating back:

  • URL correctly contains the filter parameters
  • Search results display as if no filters are applied
  • Filter state appears to be lost despite URL persistence

🔍 Steps to reproduce

  1. Use the sandbox preview url https://wq3hvl-3000.csb.app/
  2. Click on a filter (for instance Huer5)
  3. Click on any image
  4. Navigate back
  5. Observe the list is showing different results

Live reproduction

https://codesandbox.io/p/devbox/wq3hvl

💭 Expected behavior

When navigating back to search results after viewing a result page, previously applied filters should remain active and the search results should reflect those filters.

Package version

react-instantsearch: ^7.16.2, react-instantsearch-nextjs: 1.0.1

Operating system

No response

Browser

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageIssues to be categorized by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions