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
Seems like some change in version 1.9.2 is causing the href of mailto:-links to be incorrectly parsed to "/".
<Link href="mailto:[email protected]">Contact</Link>
is being rendered as <a href="/">Contact</a>
Possible workarounds:
downgrade to v.1.9.1
in Incorrect translation of external links #55 I already mentioned a workaround for fixing incorrectly translated external links, which is to have a custom link component rendering either the link component from next/link or from next-translate-routes/link based on the href. This could be extended to also exclude mailto: hrefs like: const Link = ["http","mailto:"].some(s => href.toString().startsWith(s)) ? NextLink : NextTranslateRoutesLink;
The text was updated successfully, but these errors were encountered:
Seems like some change in version 1.9.2 is causing the href of
mailto:
-links to be incorrectly parsed to"/"
.<Link href="mailto:[email protected]">Contact</Link>
is being rendered as
<a href="/">Contact</a>
Possible workarounds:
next/link
or fromnext-translate-routes/link
based on the href. This could be extended to also excludemailto:
hrefs like:const Link = ["http","mailto:"].some(s => href.toString().startsWith(s)) ? NextLink : NextTranslateRoutesLink;
The text was updated successfully, but these errors were encountered: