Astro.rewrite
does not respect the base path in configuration
#13033
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?
Describe the Bug
When using
Astro.rewrite
, the configuredbase
path is not considered. Below is a minimal example demonstrating the issue:astro.config.mjs
src/pages/aaa.astro
src/pages/bbb.astro
Steps to Reproduce
http://localhost:4322/base/bbb
.Expected Behavior
The page should output:
Actual Behavior
The page outputs:
It appears that
Astro.rewrite
does not respect thebase
path specified in the configuration.Would appreciate any clarification or fixes for this behavior.
What's the expected result?
http://localhost:4322/base/bbb
.The page should output:
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-hxasy4zm
Participation
The text was updated successfully, but these errors were encountered: