Skip to content

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

Open
algojogacor wants to merge 2 commits 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 2 commits into
storybookjs:mainfrom
algojogacor:fix/docs-addon-broken-link

Conversation

@algojogacor

@algojogacor algojogacor commented May 16, 2026

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

Summary by CodeRabbit

  • Documentation
    • Updated the “Generate UI docs automatically” documentation link to direct users to the broader writing documentation page.

@netlify

netlify Bot commented May 16, 2026

Copy link
Copy Markdown

Deploy Preview for storybook-frontpage ready!

Name Link
🔨 Latest commit 102fd24
🔍 Latest deploy log https://app.netlify.com/projects/storybook-frontpage/deploys/6a622325fda9ef000891594f
😎 Deploy Preview https://deploy-preview-426--storybook-frontpage.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented May 16, 2026

Copy link
Copy Markdown

Deploy Preview for storybook-addon-catalog ready!

Name Link
🔨 Latest commit 102fd24
🔍 Latest deploy log https://app.netlify.com/projects/storybook-addon-catalog/deploys/6a622325b42711000857b7e7
😎 Deploy Preview https://deploy-preview-426--storybook-addon-catalog.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Jul 23, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 89bdb37f-1ffc-4d0e-9588-83c30a536bf0

📥 Commits

Reviewing files that changed from the base of the PR and between f4c5ef8 and 102fd24.

📒 Files selected for processing (1)
  • apps/frontpage/components/home/document/document.tsx

📝 Walkthrough

Walkthrough

The “Generate UI docs automatically” feature link now points to /docs/writing-docs instead of /docs/writing-docs/introduction.

Changes

Documentation Link Update

Layer / File(s) Summary
Update documentation route
apps/frontpage/components/home/document/document.tsx
The feature link destination changed to the broader /docs/writing-docs route.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Possibly related PRs

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install timed out. The project may have too many dependencies for the sandbox.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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

2 participants