List of steps to reproduce (step by step, including full links if applicable):
- Visit https://en.wikipedia.org/wiki/Hofburg
- Scroll down a bit
- Click on some image (e.g. "The Swiss Gate")
- Close the image by clicking on X
- Click on some link in the article (make sure you open it in the current tab)
- When another article is loaded, hit the back button
- And see that the scroll position in the firstly loaded page ("Hofburg") wasn't preserved
What happens?:
Scroll position at the top of the article
What should have happened instead?:
Scroll position should be preserved
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
macOS Catalina 10.15.6 (19G73), Chrome Version 94.0.4606.61 (Official Build) (x86_64) without any extensions
Looks like this bug occurs only on macOS, I've just checked on Windows position is being preserved normally in that case