Commit 29f4e52
fix: decode URI-encoded path segments for files with spaces
Next.js catch-all [...path] segments preserve %20 encoding from the URL.
File paths in the DB use literal spaces, causing folder scope checks and
GitHub API calls to fail on paths like "roadmap docs/README.md".
Added decodeURIComponent to both the share viewer and repo viewer.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7c00898 commit 29f4e52
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
0 commit comments