Open blakewilson opened 5 months ago
Upon inspecting the network log, you can see a request is being made for https://localhost:3000/lunch.jpeg, instead of https://localhost:3000/hello-world/lunch.jpeg
This appears to only happen in Safari (Current version is 17.2.1). Chromium it works.
Here is a demo (Chrome on the left, Safari on the right):
https://github.com/vercel/next.js/assets/5946219/80df6423-cde5-47dc-a437-c1158832c725
@blakewilson Thanks for sharing! I was able to replicate the issue. We will take a look at this!
@samcx Awesome! Thanks. Let me know if I can help, happy to make a PR.
@samcx could you please grant @blakewilson the request to make a PR for this issue?
If the issue has been fixed, I suggest we close it to free up the open issues stats.
@blakewilson @deeseeker I apologize—this has fallen through the cracks!
If you are able to create a PR, I will be happy to take a look and review.
@blakewilson @deeseeker I apologize—this has fallen through the cracks!
If you are able to create a PR, I will be happy to take a look and review.
Hi @samcx,
Thank you for opening this issue up for contribution! I usually try to support maintainers by prompting them about pending issues, but since you've made this available, I may take a look at it during my free time.
@deeseeker You don't have to ask for permission in the future, but I guess it's good to ask so work isn't duplicated.
That will be great if you want to take a look!
Link to the code that reproduces this issue
https://github.com/blakewilson/relative-img-path-bug
To Reproduce
/hello-world
routenext/link
) and notice the image 404s on the/hello-world
route. Refresh the page, and notice the image appears.Current vs. Expected behavior
Following the steps above, I expect to see the correct image when rendering the hello world route via next/link. Instead, the image 404s.
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local), next build (local), next start (local), Vercel (Deployed), Other (Deployed)
Additional context
No response
NEXT-3245