Fixes routing bug with target="_blank"
A fix from the 4.x branch to prevent <a target="_blank" href="https://my-app/pages">link</a> from using pushstate and will open the link in a new tab.
A fix from the 4.x branch to prevent <a target="_blank" href="https://my-app/pages">link</a> from using pushstate and will open the link in a new tab.