Page MenuHomePhabricator

duplicate section titles are not accessible on translated pages
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

What happens?:

  • links to EN page access the respective sections -> ok, and specially for 'User 2'
  • links to FR page access the respective sections -> ok, if the section name is unique, nok if it is duplicated and specially 'User 2' is no longer known (we stay at the top of FR page)

What should have happened instead?:

  • links to duplicated section names on the translated pages must have the same behaviour as in the initial EN page.
  • as a workaround I added manually an "anchor" definition in the EN page just before the occurence of the second title but this is expected to be done automatially (as for single titles)

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

  • initial doubt about this behaviour has been reported in this topic and was related to page -> https://www.mediawiki.org/wiki/Edit_check/Tone_Check
  • it appears that using EN anchors in the translated pages has forgotten the user case when title is 2+ duplicated
  • check also what happens with more than 2 occurences .

Thanks.

Event Timeline

Can you give examples of the following?

links to EN page access the respective sections -> ok, and specially for 'User 2'
links to FR page access the respective sections -> ok, if the section name is unique, nok if it is duplicated and specially 'User 2' is no longer known (we stay at the top of FR page)

Here they are:
links to EN page access the respective sections -> ok, and specially for 'User 2' :
TRY: https://test.wikipedia.org/wiki/User:Wladek92/traduc#User_2

links to FR page access the respective sections -> nok if it is duplicated and specially 'User 2' is no longer known (we stay at the top of FR page)
TRY: https://test.wikipedia.org/wiki/User:Wladek92/traduc/fr#User_2

Change #1276084 had a related patch set uploaded (by Zabe; author: Zabe):

[mediawiki/core@master] Correctly support new file tables in RevDelFileItem

https://gerrit.wikimedia.org/r/1276084

Tacsipacsi subscribed.

The attached change has nothing to do with this task, its commit message just had a typo.

Change #1290962 had a related patch set uploaded (by Siebrand; author: Siebrand):

[mediawiki/extensions/Translate@master] T423812: Disambiguate anchors for duplicate section titles on translated pages

https://gerrit.wikimedia.org/r/1290962

Change #1290962 abandoned by Siebrand:

[mediawiki/extensions/Translate@master] Disambiguate anchors for duplicate section titles on translated pages

https://gerrit.wikimedia.org/r/1290962