When a user clicks on a link in Via it opens the link target in a new tab that is not proxied by Via: #9
But when the page is navigated by JavaScript this still navigates the original tab and does not leave Via. We need to intercept these programmatic navigations and make them open in a new, non-proxied tab like normal link navigations do.
There are multiple ways that JavaScript can navigate the page. This is the master issue for all of them:
Slack threads:
When a user clicks on a link in Via it opens the link target in a new tab that is not proxied by Via: #9
But when the page is navigated by JavaScript this still navigates the original tab and does not leave Via. We need to intercept these programmatic navigations and make them open in a new, non-proxied tab like normal link navigations do.
There are multiple ways that JavaScript can navigate the page. This is the master issue for all of them:
window.history(These don't actually load a new page, they just update the location bar.)window.locationorwindow.location.hrefSlack threads: