Skip to content

Skip link clears query params #1437

@ben-basten

Description

@ben-basten

Description

Using the skip link clears out query parameters from the URL when it is activated. This prevents using the skip link to view search results.

Reproduction Steps

  1. Navigate to npmx with a search query: https://npmx.dev/search?q=intl-messageformat
  2. Tab once to show the skip link, then press enter
  3. Focus moves to main content, but the search query gets scrubbed from the URL and search results disappear.
  4. Resulting URL: https://npmx.dev/search

Metadata

Metadata

Assignees

No one assigned

    Labels

    a11yRelated to accessibility and inclusion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions