<Link>
component adds leading slash /
to URLs only in Webkit browsers
#5573
Labels
<Link>
component adds leading slash /
to URLs only in Webkit browsers
#5573
What version of Remix are you using?
1.13.0
I also tested with 1.12.0 and confirmed that the issue is not present in 1.12.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
npx create-remix@latest cd ./my-app
app/routes/index.tsx
so that one of the<a>
tags is changed to a<Link>
tag:Run the server and open the page in Safari (or another Webkit browser). Note that this bug does not occur on desktop Google Chrome.
Expected Behavior
We expect the first
<a>
tag to have a href value ofhttps://remix.run/tutorials/blog
.The correct behavior appears in Chrome. If you install 1.12.0 and test on Safari, the issue is not present.
Actual Behavior
In Webkit browsers (Safari, iOS Chrome) and Android Chrome running Remix 1.13.0, the first
<a>
tag has a href value of/https://remix.run/tutorials/blog
. This breaks the anchor tag because clicking on the link takes you tohttp://localhost:3001/https://remix.run/tutorials/blog
, which is incorrect.Note that only the first
<a>
tag has the wrong href value because it's the only anchor tag that was changed to use a<Link>
tag in the code. Also note that this bug does not occur in desktop Google Chrome.The text was updated successfully, but these errors were encountered: