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
But it still temporarily shows the invalid URL in the browser before redirecting and you can't use location.href = u.substring(1) because it adds the invalid URL to the browser history so when you go back it goes back to the URL.
IMO external links should not be caught and redirected immediately, or if you don't agree with that default behavior can you provide an option to not handle external links.
Alternatively it would be more flexible if there was a callback where we can intercept the location change so we can immediately redirect ourselves using location.href.
The text was updated successfully, but these errors were encountered:
This library takes over external links so when you click on an external link:
It instead redirects to:
My current workaround is detect an external link and replace the location like:
But it still temporarily shows the invalid URL in the browser before redirecting and you can't use
location.href = u.substring(1)
because it adds the invalid URL to the browser history so when you go back it goes back to the URL.IMO external links should not be caught and redirected immediately, or if you don't agree with that default behavior can you provide an option to not handle external links.
Alternatively it would be more flexible if there was a callback where we can intercept the location change so we can immediately redirect ourselves using
location.href
.The text was updated successfully, but these errors were encountered: