Skip to content

Commit 02f7d82

Browse files
Arpith Siromoneyclaude
andcommitted
Fix routing for /login, /signup, and other special paths
Add explicit redirects before /:user catch-all to preserve existing links without trailing slashes 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 19aa939 commit 02f7d82

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

static/_redirects

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,21 @@
44
# Bookmarklet redirect
55
/bookmarklet/js /bookmarklet.js 301
66

7-
# SPA routing - serve HTML files for dynamic routes
7+
# Preserve existing links - redirect to folders (before /:user catch-all)
8+
/login /login/ 301
9+
/signup /signup 200
10+
/help /help/ 301
11+
/welcome /welcome/ 301
12+
/settings /settings/ 301
13+
/bookmarklet /bookmarklet/ 301
14+
15+
# SPA routing - serve HTML files for dynamic routes (most specific first)
816
/articles/:id/body /article 200
917
/articles/:id /label 200
1018
/:user/labels/* /label 200
1119
/:user/folders/* /label 200
1220
/:user/feeds* /label 200
1321
/feeds/* /label 200
22+
23+
# User pages - catch-all for usernames
1424
/:user /user 200

0 commit comments

Comments
 (0)