Thanks to visit codestin.com
Credit goes to github.com

Skip to content

USWDS - Feature: In-page navigation: Update URL fragment when navigating #5056

@aduth

Description

@aduth

Is your feature request related to a problem? Please describe.

As a user, I'd like to be able to either share or bookmark a specific part of a page that I access using the in-page navigation component.

Describe the solution you'd like

When using the in-page navigation to navigate to a part of the page, ideally the hash fragment portion of the browser URL would be updated to reflect the ID of the element in focus.

Why?

Describe alternatives you've considered

N/A

Additional context

Steps to reproduce:

  1. Go to https://designsystem.digital.gov/components/accordion/
  2. Click "Component code" link in the "On this page" in-page navigation

Expected: Browser URL is https://designsystem.digital.gov/components/accordion/#accordion-code
Actual: Browser URL is https://designsystem.digital.gov/components/accordion/

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions