This ticket follows up the work done as part of T152540: Migrate to HTML5 section ids.
Description
Details
Related Objects
- Mentioned In
- T349498: Routed hash links conflict with section title links (when titled /editor/0 or #/media/File:Foo.jpg)
T298278: Broken links between marker and footnote when name contains certain HTML entities
T133276: textlib.does_text_contain_section fails for encoded section title
T186272: Convert all parser tests to html5 ids
T152540: Migrate to HTML5 section ids - Mentioned Here
- rOMWC28a6ee5fc0b0: Switch all wikis to HTML5 section IDs
rMW2639f3350167: Set default fragment mode to [ 'legacy', 'html5' ]
T139744: Remove $wgExperimentalHtmlIds (deprecated in 1.30)
T152540: Migrate to HTML5 section ids
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
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
Change 720460 merged by jenkins-bot:
[mediawiki/extensions/VisualEditor@master] MWInternalLinkAnnotation: Make test work with both fragment modes
Change 720427 merged by jenkins-bot:
[mediawiki/core@master] Change $wgExperimentalHtmlIds to HTML5-first