Open HelaGone opened 2 months ago
The same error :/
Edit by maintainer bot: Comment was automatically minimized because it was considered unhelpful. (If you think this was by mistake, let us know). Please only comment if it adds context to the issue. If you want to express that you have the same problem, use the upvote 👍 on the issue description or subscribe to the issue for updates. Thanks!
hello Vercel / Next team. Do you have any update or eta to review this bug? Is there something we can do to solve this issue without losing the image optimization?
@HelaGone I'm also facing the same issue
We are also facing this issue. Firefox and Chrome seems to be automatically applying some html decoding on the preload url, thus avoiding this issue, but Safari does not, causing a lot of unnecessary 400 errors on our back end.
Link to the code that reproduces this issue
https://github.com/HelaGone/image_testing
To Reproduce
build the application
start the server
visit the provided url
right click and select view source code
search for the link
rel=preload
of theimageSrcSet
see the wrong encoding of the
&
it's&
and should be&
or%26
copy the path and concatenate the path with the
localhost:3000
see the error in the browser:
"w" parameter (width) is required
Current vs. Expected behavior
current behavior is the error in the browser:
Expected behaviour: The image should resolve correctly in the browser.
Provide environment information
Which area(s) are affected? (Select all that apply)
Image (next/image)
Which stage(s) are affected? (Select all that apply)
Other (Deployed)
Additional context
This is affecting our application in production and reporting Google Search Console errors
Here is a production with wrong encoding
The same image with proper encoding: