I found that is a difference between using window.open (or window.location.replace) with setTimeout and a simple click on an <a href...>: if I use
setTimeout("window.location.replace('http://www.example.net/code?param1=1&param3=3', 5000);
I will not be redirected on the correct page. Instead if I use a simple link to http://www.example.net/code?param1=1&param3=3 when the user clicks it goes to the correct page. How can this be avoided? I imagine that the difference is made on server side but I don't know what is it. What do you know about this?