Astro.rewrite
encodes path into url causes dynamic params mismatch
#13098
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
feat: routing
Related to Astro routing (scope)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Astro.rewrite will encode the path into url but the dynamic params won't decode it.
The patch works for me but i don't know the intended usage of pathname and whether it will crash somewhere else.
What's the expected result?
rewrite should use decoded path to match the dynamic params.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-dh2hv9pz?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: