List of steps to reproduce (step by step, including full links if applicable):
- Add the below code
- Edit the second section
- Click on the "Save changes" button
==Test== * Scroll * Scroll * Scroll * Scroll * Scroll * Scroll * Scroll * Scroll * Scroll * Scroll ==Test== The returned link to the browser (in the location bar) is [[#Test]] not [[#Test_2]] after I've edited this section. ==Test== * Scroll * Scroll * Scroll * Scroll * Scroll * Scroll * Scroll * Scroll * Scroll * Scroll ==Test== * Scroll * Scroll * Scroll * Scroll * Scroll * Scroll * Scroll * Scroll * Scroll * Scroll
What happens?:
When you hit the "Save changes" button the #Test link is loaded by the browser (see the location bar: example: https://www.mediawiki.org/wiki/User:AKlapper_(WMF)/Sandbox#Test).
What should have happened instead?:
The second Test section will be listed as Test (notice the extra "_2" in the URL) in the TOC automatically added by MediaWiki. However, #Test_2 is not loaded by the browser bar when you hit the "Save changes" button, for example: https://www.mediawiki.org/wiki/User:AKlapper_(WMF)/Sandbox#Test_2
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.: 1.39.0-wmf.10 (6139f98) (https://en.wikipedia.org/wiki/Special:Version)