I have a "on click" window.location.assign
function that is working fine on my desktop but not on the iPhone. Each time I click on the button on my phone, I see that the URL is changing but then coming back to the old one.
I tried with window.location.replace
and other JS options to make a redirection but there was always this strange "bug" on my phone.
$('#redirect').on('click', function(){
var url = "https://google.com/";
window.location.assign(url);
return false;
});
Why is this happening and how can it be resolved?