Skip to content

[Bug]: Page id does not work on mdx files #34684

@sandrina-p

Description

@sandrina-p

Describe the bug

Stories can have custom URL based on the id, and it works in CSF format (eg *.stories.tsx file), but it does not work in *.mdx files:

<Meta title="Example/Button/Guidelines" id="button-guidelines" />

Can you fix it pls? 🙇

Reproduction link

https://stackblitz.com/edit/github-wmqb1cu2?file=src%2Fstories%2FButton.guidelines.mdx,src%2Fstories%2FButton.stories.ts,package.json&preset=node

Reproduction steps

  1. Open the storybook
  2. Go to Button > Guidelines

Expected URL:

  • ?path=/docs/button-guidelines--docs

Current URL:

  • ?path=/docs/example-button-guidelines--docs

System

Latest version, react with vite

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions