Skip to content

Commit da6c5d6

Browse files
Arpith Siromoneyclaude
andcommitted
Fix _redirects routing order for Cloudflare Pages
- Move bookmarklet redirect before SPA routes - Reorder routes so more specific patterns come first - Ensures /articles/:id/body matches before /articles/:id 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent fc879a2 commit da6c5d6

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

static/_redirects

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
# Redirect /api to the API server
22
/api https://api.feedreader.co 301
33

4-
# SPA routing - serve index.html for user pages
4+
# Bookmarklet redirect
5+
/bookmarklet/js /bookmarklet.js 301
6+
7+
# SPA routing - serve HTML files for dynamic routes (order matters!)
8+
/articles/:id/body /article.html 200
9+
/articles/:id /label.html 200
510
/:user/labels/* /label.html 200
611
/:user/folders/* /label.html 200
712
/:user/feeds* /label.html 200
813
/feeds/* /label.html 200
914
/:user /user.html 200
10-
11-
# Articles routing
12-
/articles/:id /label.html 200
13-
/articles/:id/body /article.html 200
14-
15-
# Bookmarklet redirect
16-
/bookmarklet/js /bookmarklet.js 301

0 commit comments

Comments
 (0)