Skip to content

Storybook: Add redirect for moved introduction page#76701

Merged
mirka merged 1 commit intotrunkfrom
fix/storybook-intro-redirect
Mar 20, 2026
Merged

Storybook: Add redirect for moved introduction page#76701
mirka merged 1 commit intotrunkfrom
fix/storybook-intro-redirect

Conversation

@mirka
Copy link
Copy Markdown
Member

@mirka mirka commented Mar 19, 2026

Follow-up to #76671

What?

Adds a URL redirect for the introduction docs page that was moved from Docs/Introduction to top-level Introduction in #76671.

Why?

The move changed the Storybook URL path from ?path=/docs/docs-introduction--page to ?path=/docs/introduction--page, which would break any existing bookmarks or shared links to the old URL.

How?

Added a redirect entry to the existing redirect script in storybook/manager-head.html. The pattern is anchored to the start of the path string to avoid false matches.

Testing Instructions

  1. npm run storybook:dev
  2. Visit the old URL directly: http://localhost:50241/?path=/docs/docs-introduction--page
  3. Verify it redirects to http://localhost:50241/?path=/docs/introduction--page

Use of AI Tools

Cursor was used for initial drafting.

@mirka mirka self-assigned this Mar 19, 2026
@mirka mirka added [Type] Developer Documentation Documentation for developers Storybook Storybook and its stories for components labels Mar 19, 2026
@mirka mirka requested a review from a team March 19, 2026 20:11
Copy link
Copy Markdown
Contributor

@ciampo ciampo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@github-actions
Copy link
Copy Markdown

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@mirka mirka merged commit d1d9aaa into trunk Mar 20, 2026
48 of 50 checks passed
@mirka mirka deleted the fix/storybook-intro-redirect branch March 20, 2026 15:36
@github-actions github-actions Bot added this to the Gutenberg 22.9 milestone Mar 20, 2026
adamsilverstein pushed a commit that referenced this pull request Mar 31, 2026
Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>
adamsilverstein pushed a commit that referenced this pull request Apr 7, 2026
Co-authored-by: mirka <0mirka00@git.wordpress.org>
Co-authored-by: ciampo <mciampini@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storybook Storybook and its stories for components [Type] Developer Documentation Documentation for developers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants