Commit 34d6a8e
Fix sitemap package URLs returning 404
Chi's {page} param in /sitemap-packages-{page}.xml captures "0.xml"
instead of just "0", causing strconv.Atoi to fail. Strip the .xml
suffix before parsing.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent cc53b14 commit 34d6a8e
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
256 | | - | |
| 257 | + | |
| 258 | + | |
257 | 259 | | |
258 | 260 | | |
259 | 261 | | |
| |||
0 commit comments