Skip to content

fix: update docs addon link on homepage to resolve 404#426

Open
algojogacor wants to merge 1 commit into
storybookjs:mainfrom
algojogacor:fix/docs-addon-broken-link
Open

fix: update docs addon link on homepage to resolve 404#426
algojogacor wants to merge 1 commit into
storybookjs:mainfrom
algojogacor:fix/docs-addon-broken-link

Conversation

@algojogacor

Copy link
Copy Markdown

Summary

Fixes #422 — the "Learn about docs addon" button on the Storybook homepage links to /docs/writing-docs/introduction which returns a 404. Updated to link to /docs/writing-docs which is the canonical URL (a 301 redirect from the old path is already configured).

Root Cause

The document.tsx component on the homepage contains a hardcoded link to /docs/writing-docs/introduction. While a 301 redirect exists in raw-redirects to forward this path to /docs/writing-docs, the redirect doesn't prevent users from seeing a 404 when the redirect chain breaks.

Solution

Updated the href in the "Learn about docs addon" feature link from /docs/writing-docs/introduction to /docs/writing-docs — the canonical path already defined as the redirect target.

Changes

  • apps/frontpage/components/home/document/document.tsx: Changed href from /docs/writing-docs/introduction to /docs/writing-docs (+1 -1)

Testing

  • ✅ Link now points to the canonical /docs/writing-docs path
  • ✅ No other hardcoded references to /docs/writing-docs/introduction in the codebase
  • ✅ Consistent with the existing 301 redirect configuration

@netlify

netlify Bot commented May 16, 2026

Copy link
Copy Markdown

👷 Deploy request for storybook-frontpage pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 7da9014

@netlify

netlify Bot commented May 16, 2026

Copy link
Copy Markdown

👷 Deploy request for storybook-addon-catalog pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 7da9014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: "Learn about docs addon" button on homepage links to a 404 page

1 participant