Skip to content

docs: redirect 404s to the homepage - #108

Merged
juanisierra merged 1 commit into
mainfrom
rtomas/redirect-404-to-homepage
Sep 8, 2026
Merged

docs: redirect 404s to the homepage#108
juanisierra merged 1 commit into
mainfrom
rtomas/redirect-404-to-homepage

Conversation

@rtomas

@rtomas rtomas commented Sep 7, 2026

Copy link
Copy Markdown
Member

Enables Mintlify's errors.404.redirect in docs.json so any unmatched path sends visitors to the docs landing page instead of rendering a 404.

Mintlify resolves that redirect to the first page in navigation, which was wallets/overview since index.mdx wasn't in the nav at all — so index is now listed first in the Wallets dropdown, making / the target. Verified locally: unknown paths 307 to /, real pages and the existing redirect rules are unaffected.

Side effect: a "Home" link now appears at the top of the Wallets sidebar.

🤖 Generated with Claude Code

Enable Mintlify's errors.404.redirect so unmatched paths go to the
landing page instead of rendering a 404. The redirect targets the first
page in navigation, so index.mdx is now listed first in the Wallets
dropdown, making "/" the target instead of /wallets/overview.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@mintlify

mintlify Bot commented Sep 7, 2026

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
wcpaydocs 🟢 Ready View Preview Sep 7, 2026, 5:47 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@juanisierra
juanisierra merged commit c959911 into main Sep 8, 2026
4 checks passed
@juanisierra
juanisierra deleted the rtomas/redirect-404-to-homepage branch September 8, 2026 08:06
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.

2 participants