Skip to content

Feature: Anchor-based Tab Selection in Tabs Block #20

@Verma-Punit

Description

@Verma-Punit

Description

This feature aims to enhance UX by allowing direct access to a particular tab on page load or when navigating via URL.

The new functionality should:

  • Read the anchor from the URL hash and automatically switch to the corresponding tab.
  • Update the URL hash when a user clicks on a tab, without triggering a full page reload.
  • Maintain fallback if no hash is present or does not match any tab.

Expected Behaviour

  • When visiting a URL like example.com/page#pricing, the "Pricing" tab is automatically selected.
  • Clicking on a tab updates the URL to #tabname.
  • If the hash does not match any tab, the default (or first) tab is shown.
  • The feature works across page reloads and supports back/forward browser navigation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions