& encoding with server rendered strings affects head URLs with multiple params #9695
Closed
1 task done
Labels
- P3: minor bug
An edge case that only affects very specific usage (priority)
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
Seems intentional but when strings with
&
are used in a meta head tag, they're encoded as&
during development and build which affects URLs with a query string with multiple search params e.g. anog:image
link pointing to an API that dynamically generates the image with a title and description.For the Stackblitz example, when built, it is transformed into
&
.What's the expected result?
Not escaped in this case?
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-2f3s26?file=src%2Flayouts%2FLayout.astro
Participation
The text was updated successfully, but these errors were encountered: