Page MenuHomePhabricator

Phase out legacy IDs now that HTML5 IDs are deployed everywhere
Open, Needs TriagePublic

Description

This ticket follows up the work done as part of T152540: Migrate to HTML5 section ids.

Implementation proposal:

[…]

  • Wait for many years
  • Set $wgSectionFragmentFlavour to "html5"

Event Timeline

Probably the first step is to flip the DefaultSettings.php $wgFragmentMode from ['legacy','html5'] to ['html5','legacy'].

The comment for https://gerrit.wikimedia.org/r/405391 (2639f3350167a4331dfa6120b9a47c80b731f518) suggests this should be done for 1.35 LTS; we'd probably want to remove the deprecated $wgExperimentalHtmlIds around the same time (T139744: Remove $wgExperimentalHtmlIds (deprecated in 1.30)).

Note that we changed the default on WMF wikis to ['html5','legacy'] in 28a6ee5fc0b055125c0d6b036587f30a257b0ad0.

Cool anchors don't change.

Will all links using old anchors be updated? Even if the anchors are provided within full urls? What about links to a section from external pages?

Section links break all the time because unlike page redirects there's nothing to help old links work when users edit section headings. That being said, my take on timeline for this would be "look at the situation around this in 5 years".

Change 720427 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/core@master] Change $wgExperimentalHtmlIds to HTML5-first

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

Change 720460 had a related patch set uploaded (by Gergő Tisza; author: Gergő Tisza):

[mediawiki/extensions/VisualEditor@master] MWInternalLinkAnnotation: Make test work with both fragment modes

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

Change 720460 merged by jenkins-bot:

[mediawiki/extensions/VisualEditor@master] MWInternalLinkAnnotation: Make test work with both fragment modes

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

Change 720427 merged by jenkins-bot:

[mediawiki/core@master] Change $wgExperimentalHtmlIds to HTML5-first

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