Page MenuHomePhabricator

Section titles failing to resolve redirected templates
Closed, ResolvedPublic

Description

As noted in T368095#9913092 and T387374#10587246

A template can be redirected. A section title should point to the resolved template name, not the original, otherwise section edit links will be to the wrong template page.

A test was added for this in https://gerrit.wikimedia.org/r/c/mediawiki/services/parsoid/+/1053387

Related Objects

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

At a (vaguely educated) guess, it's plausible that the fact that we do have links on https://en.wikipedia.org/w/index.php?title=Template:YouTuber-bio-stub&oldid=1252778015&useparsoid=1 (and we don't on legacy) is related.

Change #1304193 had a related patch set uploaded (by Arlolra; author: Arlolra):

[mediawiki/core@master] [WIP] Return HeadingPFragments

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

Change #1304192 had a related patch set uploaded (by Arlolra; author: Arlolra):

[mediawiki/services/parsoid@master] Add a HeadingPFragment type to be returned by the preprocessor

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

Change #1304193 merged by jenkins-bot:

[mediawiki/core@master] [parser] Return HeadingPFragments while preprocessing

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

Change #1304192 merged by jenkins-bot:

[mediawiki/services/parsoid@master] Add a HeadingPFragment type to be returned by the preprocessor

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

Change #1305015 had a related patch set uploaded (by C. Scott Ananian; author: Arlolra):

[mediawiki/core@wmf/1.47.0-wmf.8] [parser] Return HeadingPFragments while preprocessing

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

Change #1305018 had a related patch set uploaded (by C. Scott Ananian; author: Arlolra):

[mediawiki/core@wmf/1.47.0-wmf.7] [parser] Return HeadingPFragments while preprocessing

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

Change #1305015 merged by jenkins-bot:

[mediawiki/core@wmf/1.47.0-wmf.8] [parser] Return HeadingPFragments while preprocessing

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

Mentioned in SAL (#wikimedia-operations) [2026-06-23T13:29:20Z] <cscott@deploy1003> Started scap sync-world: Backport for [[gerrit:1305015|[parser] Return HeadingPFragments while preprocessing (T391624 T387520 T387521 T384490 T387374)]], [[gerrit:1305026|[parser] Return ExtTagPFragments while preprocessing (T429624)]]

Mentioned in SAL (#wikimedia-operations) [2026-06-23T13:31:31Z] <cscott@deploy1003> cscott: Backport for [[gerrit:1305015|[parser] Return HeadingPFragments while preprocessing (T391624 T387520 T387521 T384490 T387374)]], [[gerrit:1305026|[parser] Return ExtTagPFragments while preprocessing (T429624)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-06-23T13:41:53Z] <cscott@deploy1003> Finished scap sync-world: Backport for [[gerrit:1305015|[parser] Return HeadingPFragments while preprocessing (T391624 T387520 T387521 T384490 T387374)]], [[gerrit:1305026|[parser] Return ExtTagPFragments while preprocessing (T429624)]] (duration: 12m 31s)

Change #1305018 merged by jenkins-bot:

[mediawiki/core@wmf/1.47.0-wmf.7] [parser] Return HeadingPFragments while preprocessing

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

Mentioned in SAL (#wikimedia-operations) [2026-06-23T13:44:02Z] <cscott@deploy1003> Started scap sync-world: Backport for [[gerrit:1305017|[parser] Add configuration to return experimental PFragment types]], [[gerrit:rGOJU130501848b37|[parser] Return HeadingPFragments while preprocessing (T391624 T387520 T387521 T384490 T387374)]], [[gerrit:1305025|[parser] Return ExtTagPFragments while preprocessing (T429624)]]

Mentioned in SAL (#wikimedia-operations) [2026-06-23T13:46:11Z] <cscott@deploy1003> cscott: Backport for [[gerrit:1305017|[parser] Add configuration to return experimental PFragment types]], [[gerrit:rGOJU130501848b37|[parser] Return HeadingPFragments while preprocessing (T391624 T387520 T387521 T384490 T387374)]], [[gerrit:1305025|[parser] Return ExtTagPFragments while preprocessing (T429624)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be v

Mentioned in SAL (#wikimedia-operations) [2026-06-23T13:52:30Z] <cscott@deploy1003> Finished scap sync-world: Backport for [[gerrit:1305017|[parser] Add configuration to return experimental PFragment types]], [[gerrit:rGOJU130501848b37|[parser] Return HeadingPFragments while preprocessing (T391624 T387520 T387521 T384490 T387374)]], [[gerrit:1305025|[parser] Return ExtTagPFragments while preprocessing (T429624)]] (duration: 08m 29s)

Change #1305690 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.24.0-a12

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

Change #1305690 merged by jenkins-bot:

[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.24.0-a12

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

Change #1305719 had a related patch set uploaded (by C. Scott Ananian; author: C. Scott Ananian):

[mediawiki/vendor@wmf/1.47.0-wmf.8] Bump wikimedia/parsoid to 0.24.0-a12

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

Change #1305719 merged by jenkins-bot:

[mediawiki/vendor@wmf/1.47.0-wmf.8] Bump wikimedia/parsoid to 0.24.0-a12

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

Mentioned in SAL (#wikimedia-operations) [2026-06-25T16:36:37Z] <cscott@deploy1003> Started scap sync-world: Backport for [[gerrit:1305719|Bump wikimedia/parsoid to 0.24.0-a12 (T353697 T384490 T387374 T387520 T387521 T391624 T393295 T420336 T429624 T429688 T429822)]], [[gerrit:1305720|Bump wikimedia/parsoid to 0.24.0-a12 (T429822)]]

Mentioned in SAL (#wikimedia-operations) [2026-06-25T16:38:41Z] <cscott@deploy1003> cscott: Backport for [[gerrit:1305719|Bump wikimedia/parsoid to 0.24.0-a12 (T353697 T384490 T387374 T387520 T387521 T391624 T393295 T420336 T429624 T429688 T429822)]], [[gerrit:1305720|Bump wikimedia/parsoid to 0.24.0-a12 (T429822)]] synced to the testservers (see https://wikitech.wikimedia.org/wiki/Mwdebug). Changes can now be verified there.

Mentioned in SAL (#wikimedia-operations) [2026-06-25T16:46:32Z] <cscott@deploy1003> Finished scap sync-world: Backport for [[gerrit:1305719|Bump wikimedia/parsoid to 0.24.0-a12 (T353697 T384490 T387374 T387520 T387521 T391624 T393295 T420336 T429624 T429688 T429822)]], [[gerrit:1305720|Bump wikimedia/parsoid to 0.24.0-a12 (T429822)]] (duration: 09m 54s)

At a (vaguely educated) guess, it's plausible that the fact that we do have links on https://en.wikipedia.org/w/index.php?title=Template:YouTuber-bio-stub&oldid=1252778015&useparsoid=1 (and we don't on legacy) is related.

Not a bad guess, but I think it's more because the headings are ultimately generated from Module:Article_stub_box and so there's no template source to associate them with. I filed this as T430367