Steps to replicate the issue (include links if applicable):
- open https://www.mediawiki.org/wiki/API:REST_API/Reference/fr#Obtenir_les_nombres_d'historiques_de_page
- click on Objet nombre d'historiques
- check link value is -> https://www.mediawiki.org/wiki/API:REST_API/Reference/fr#Response_schema_2
What happens?:
- nothing there is no #Response_schema_2 in the french page
- the anchor # doesnt work on the translated page when the same section appears several times on a page
What should have happened instead?:
- the anchor # must lead to #Schéma de la réponse assimilated to #Response_schema_2 just below
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
- In a page structure as:
1.Section 1
1.1 Request
1.2 Response
2.Section 2
2.1 Request <-- anchored as #Request_2
2.2 Response <-- anchored as #Response_2
A link done to anchor #Request_2 is satisfied on the root page in english but no longer on the translated page