Skip to content

fix: homepage client-side navigation showing not found - #419

Merged
schoenwaldnils merged 1 commit into
mainfrom
fix/homepage-client-navigation
Mar 27, 2026
Merged

fix: homepage client-side navigation showing not found#419
schoenwaldnils merged 1 commit into
mainfrom
fix/homepage-client-navigation

Conversation

@schoenwaldnils

Copy link
Copy Markdown
Owner

The rewrite rule (/ → /home) in next.config.ts only applies server-side. Client-side navigation bypassed it, causing the [...path] catch-all to receive an empty path array and trigger notFound().

Add a root page.tsx that imports the catch-all page component with path hardcoded to ['home'], and remove the now-unnecessary rewrite.

The rewrite rule (/ → /home) in next.config.ts only applies server-side.
Client-side <Link href="/"> navigation bypassed it, causing the [...path]
catch-all to receive an empty path array and trigger notFound().

Add a root page.tsx that imports the catch-all page component with
path hardcoded to ['home'], and remove the now-unnecessary rewrite.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@vercel

vercel Bot commented Mar 27, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
schoen-world Building Building Preview, Open in v0 Mar 27, 2026 5:59pm

@schoenwaldnils
schoenwaldnils merged commit 67bed69 into main Mar 27, 2026
4 checks passed
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.

1 participant