redirect in javascript in Firefox

Permalink
Hello all,
I have made a form which calls a javascript and after the code has finished it should redirect to another page.
I am using the following code:
window.location.href = "http://xyz.be/index.php/vragenlijst/";
Which works perfect in all browsers but Firefox, in which the visitor is logged out. So he gets redirected to an log in page. Which in a way is correct but he shouldn't be loggged out in the first place. I think it has to do with the absolute adres in the redirect code. But if I use:
window.location.href = "index.php/vragenlijst/";
It can't find the page. Because it wants to go to:
http://xyz.be/index.php/vragenlijst-02/index.php/vragenlijst/...
Please help me in the right direction.
Thanks

 
BrianBaart replied on at Permalink Reply
Well that's strange:
I have added to the button the code: return false; and now it seems to be working. So it wasn't the absolute adres at all it was the code in the html form. Well for now.

Thanks for reading.
BrianBaart replied on at Permalink Reply
This is getting stranger, when I tried the form just yet I was redirected to the index page but was being logged out again. So adding return=false; didn't help. If anyone has an idee I would be gratefull.

So sometimes it redirects correctly and sometimes it redirects but logs out as well.