Skip to content

[BUG] If multiple Different Tabs have the same title, the link redirects to the first one #932

@sankalpmukim

Description

@sankalpmukim

Hi, there is a UI bug in the Link of the component.

The problem

If the documentation contains multiple tabs with the same title, it links to the first instance
The biggest issue is confusion for the end-user when they click on a Tab to view it and view something else instead.

Example / Reproduction steps

I noticed this when I was using modelcontextprotocol.io (code at github.com/modelcontextprotocol/modelcontextprotocol)

On this page, https://modelcontextprotocol.io/docs/concepts/transports , You will find multiple usages of the <Tabs> component. Out of these, 3 sets of have the exact 4 children titles, but different content.

You click on any of the above 3 links (on the actual website link above), it takes you to the same first tab of "Typescript (Server)"

I get the simplicity of this design, but I think the Tab component can simply accept an optional id property that explicitly sets the link for that Tab instance.

Lastly, I couldn't find a better place to open this issue, so if there is one that is more suitable than this one, please let me know, I will copy/paste this there.

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