I’m sure I’m overlooking something here but, I have code like so (its more complicated but I think I can safely break it down to these components):
setTimeout(window.location.assign(page),400);
page is a url like 'http://www.this.com'
The problem is that the newly assigned page has RANDOM numbers appended to it. To clarify, instead of being redirected from here.com to here.com/there, it goes here.com to here.com/-54
It looks like I’m returning a value somewhere but I’m not sure where the misuse is as I’m unfamiliar with this function. Anyone see where things have gone awry?
Thanks!
I tried this out in Firefox and I’m not getting any problems (well, other than what @Gerben mentioned in comments)
So, I have some questions for you:
browsers?
FYI @Gerben means to rewrite your code like this if you want the timeout to actually work