-
Notifications
You must be signed in to change notification settings - Fork 432
add default page redirects for documentation sections #1893
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
77233f3 to
7664f4d
Compare
✅ Deploy Preview for hyprnote ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Caution Review failedThe pull request is closed. 📝 WalkthroughWalkthroughThe documentation routing system is reorganized by moving Changes
Sequence DiagramsequenceDiagram
participant User
participant beforeLoad
participant loader
participant Render
User->>beforeLoad: Navigate to docs route
beforeLoad->>beforeLoad: Normalize _splat parameter
alt Default page exists
beforeLoad->>User: Redirect to default page
else Doc not found
alt Is fallback doc
beforeLoad->>Render: Return early (show fallback)
else Not fallback doc
beforeLoad->>User: Redirect to "about/hello-world"
end
else Doc found
beforeLoad->>loader: Continue to loader
loader->>loader: Fetch doc by normalized path<br/>or path/index variant
loader->>Render: Return doc data
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Possibly related PRs
Suggested reviewers
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
Comment |
✅ Deploy Preview for hyprnote-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
The latest updates on your projects. Learn more about Argos notifications ↗︎
|
No description provided.