Just assign a desired address to the href
property, instead of trying to replace the whole window.location
object:
window.location.href = 'myapp://do/xx';
It works for me on iOS 9.0.2, but now safari shows a confirmation dialog to ensure а user really wants open your link in the app.