Steps to reproduce:
- Open a longer article, e.g. https://en.wikipedia.org/wiki/London
- Click a section in the table of contents, e.g. https://en.wikipedia.org/wiki/London#Air
- Click an image to open the viewer.
- Go back in your browsers history (usually Alt+Left).
- Go forward.
- Go back again.
Result: The page scrolls to the top.
Expected: Focus should stay on the section.
Version: master
Severity: normal