Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

auto-redirecting page is skipped by Chrome history

I have a webpage url1 that will do auto-redirecting to url2 with window.location.href. However, when I click "back" button on Chrome, I am redirected to the page before url1, url1 is skipped. But I can still back to url1 by window.history.back(). This problem doesn't happen in FireFox. Any help?

like image 353
Rapidturtle Avatar asked Nov 26 '25 06:11

Rapidturtle


1 Answers

It's Chrome feature since Chrome 75, named History manipulation intervention. History without a user interaction will be skipped when a user hits Chrome back button.

https://bugs.chromium.org/p/chromium/issues/detail?id=907167

like image 88
jasperjian Avatar answered Nov 27 '25 19:11

jasperjian



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!