You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok, this is an upstream bug that is being fixed here: vitejs/vite#16412@bluwy is going to work on getting that finalized which should then fix in Astro as well.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I've set base =
/blog/John%20Doe
in the astro config.When building and deploying the site, the final path to the assets in css url() references are double encoded.
The output paths in css url() becomes
/blog/John%2520Doe/...
, when they should stay/blog/John%20Doe/...
The background image url becomes -
/blog/John%2520Doe/_astro/[name].[hash].svg
The font url becomes -
/blog/John%2520Doe/_astro/[name].[hash].ttf
What's the expected result?
The url() references shouldn't get double encoded. The % character in config.base is getting encoded to %25
Expected asset path in css url() :
/blog/John%20Doe/[name].[hash].[ext]
Actual asset path in css url():
/blog/John%2520Doe/[name].[hash].[ext]
Link to Minimal Reproducible Example
https://github.com/SibiAkkash/astro-double-encoding-example
Participation
The text was updated successfully, but these errors were encountered: