Thank you very much @Rodrigo, now the reloading works.
However, when I navigate forwards or backwards via the browser, the progress of the animation and the scroll position are always reset, which is bad for usability. What would you have to change if you want to keep the status and scroll position when changing pages.