Worse yet, sometimes people do "page" transitions in JS event handlers, which means that all of the sudden you no longer can ctrl/shift + click these UI elements to open up the page in a new tab/window, or even copy the link.
Not that well made SPA solutions aren't pleasant to use, it's just that you can do all sorts of weird things that make using them miserable.
Some websites used iframes to render the main content, and kept navigation controls outside the iframe. So if you open a link in a new tab (or window, before tabs existed), you ended up on a page with just the content without the navigation.
Some routers still use this way for page setup, for some reason.
Shitty implementations will be shitty, no matter how you do it.
... but not of the document since the document is opened through some JS crap.
Thank you, Techniker-Krankenkasse.
If you’re lucky, the page will scroll to the top as well!