Skip to content

Reset Pagination in docs search when removing filters #38734

Closed
@jakobfischer17

Description

@jakobfischer17

Code of Conduct

What article on docs.github.com is affected?

any search result, e.g. https://docs.github.com/en/search?query=entra+id+sso

What changes are you suggesting?

When I search for something, and then filter for a category with results that are more than one page, e.g. "Apps" in picture below, I get a pagination via the URL and can navigate to e.g. "Page 2" of the results in "Apps".

Image

However if I then remove the filter by unchecking the checkmark next to "Apps", and check instead a category with less results that would not need pagination, e.g. "Account and profile", I get the page you can see in the picture below, due to the page 2 being harcoded in the URL:

Image

So when unchecking a filter, it should reset the pagination, or automatically jump to Page 1 if a new category is filtered.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamtriageDo not begin working on this issue until triaged by the team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions