add default page redirects for documentation sections#1893
add default page redirects for documentation sections#1893ComputelessComputer merged 1 commit intomainfrom
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.