Fix open in new window when not hosted at URL root.