Never understood why sites do that. Do they expect me to stick around and click some ads? I usually just close the tab and move on
Obviously it can be used intentionally to hijack your session history, but it’s also surprisingly easy to do by mistake unless your state management is effectively designed for concurrency (which the API isn’t, but it encourages the same kinds of bad patterns).