This works in all browsers:
window.location.href = '...';
If you wanted to change the page without it reflecting in the browser back history, you can do:
window.location.href = 'http://www.google.com';
window.location = 'http://www.google.com';
It seems that this is the correct way
©2020 All rights reserved.