window.location.href and console.log are not friends in JavaScript
Do not expect to redirect elsewhere while writing to the console immediate beforehand. The redirect will still happen but you'll see nothing at the console unless it happens in another blob of code that is asynchronously referred to.
No comments:
Post a Comment