SyntaxFix
Write A Post
Hire A Developer
Questions
I used window.location.href='http://external-url';
window.location.href='http://external-url';
For me the the redirects worked in Chrome, but didn't work in Firefox. The following code resolved my problem:
window.location.assign('http://external-url');