On https://hu.wikipedia.org/wiki/Wikip%C3%A9dia:T%C3%B6rl%C3%A9sre_javasolt_lapok?uselang=en section edit links link to https://hu.wikipedia.org/w/index.php?title=Sablon:T%C3%B6rl%C3%A9s_link&action=edit§ion=T-1 template page, which is not correct.
The sections are on transcluded subpages.
Legacy parser gives correct links:
https://hu.wikipedia.org/wiki/Wikip%C3%A9dia:T%C3%B6rl%C3%A9sre_javasolt_lapok?uselang=en&useparsoid=0 links for example to https://hu.wikipedia.org/w/index.php?title=Wikip%C3%A9dia:T%C3%B6rl%C3%A9sre_javasolt_lapok/Alekszandar_Sztojanovski&action=edit§ion=T-1
Description
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | ABreault-WMF | T391624 Parsoid section edit link issues | |||
| Resolved | BUG REPORT | ABreault-WMF | T422291 Wrong section edit link target with Parsoid when section is transcluded |
Event Timeline
DiscussionTools reply tool problem is a separate issue, it looks like the same situation as described here: T259824: DiscussionTools's reply tool doesn't work when the comments are transcluded from another page using a template (not directly).
We’ve talked about the wrong edit links in T368095: Parsoid shows bogus section edit links. It’s because template transclusions still use the legacy parser, and so Parsoid is not aware of where the heading actually comes from. (This is also why DiscussionTools doesn’t work – it only sees data Parsoid sees. So I wouldn’t call it a separate issue.) The task got closed, but this problem hasn’t been fixed, apparently not even almost two years later.
Noting that the issue doesn't just affect small size Wikipedias, there are similar reports on German Wikipedia as well – and likely all other projects using Parsoid as the new default judging by the number of subscribers from different wikis.
Fair enough!
We've been partly using "small size" vs "larger" as a shorthand for "places where Parsoid is already the default" vs "places where it's not", but we may need to rename these milestones now that we did start deploying on larger Wikipedias :)
The new parser is still way too buggy to be used on productive projects. There are so many bugs linked to the new parser on German Wikipedia, it's really annoying. The deploying definitely started much too early.
This basically breaks the easiest ways to edit sections for templates with documentation pages. It is quite unfortunate that there is also no way to differentiate Parsoid-rendered pages from non-Parsoid ones via CSS since I’d rather hide those edit links while this bug is still active than mislead people into thinking they lead somewhere useful, like they did before.
It is quite unfortunate that there is also no way to differentiate Parsoid-rendered pages from non-Parsoid ones via CSS
Try .mw-parser-output[data-mw-parsoid-version]
You can’t target .mw-parser-output itself in TemplateStyles, unfortunately (and putting it in Common.css for everyone would probably be too much for this bug).
I read this just now in another task related to this one:
This made me wonder: while the links are undesirable in page views, what stops Parsoid here from doing something like exposing them in the metadata, so that Parsoid itself could then build correct edit links in read views? i.e. something like this in <h2> output (data-… attributes or even just href):
<link rel="mw:EditSectionLink" data-page="…" data-section-id="…">
This wouldn’t pollute VE or other contexts more than the existing HTML pollution we get from Parsoid, but it would ensure that it always knows what context an edit link is required in. Seems like a potential solution to this issue.
It also has wrong links in Template data's edit button. The first image is Parsoid, the second image is the legacy parser. The example is from ukwiki.
This is probably three different bugs. The translation of the link in the middle of this report is:
:When trying to edit any topic in rename requests, it redirects to this [https://uk.wikipedia.org/w/index.php?title=Template:Rename&action=edit§ion=T-1 page], it is indeed somehow related to renames, so if there is no protection, then it is a technical bug... --[[User:Dzmij Dzmijevich|Dzmij Dzmijevich]] ([[User talk:Dzmij Dzmijevich|talk]]) 18:28, 17 June 2026 (UTC)
: With [https://uk.wikipedia.org/wiki/%D0%92%D1%96%D0%BA%D1%96%D0%BF%D0%B5%D0%B4%D1%96%D1%8F:%D0%9F%D0%B5%D1%80%D0%B5%D0%B9%D0%BC%D0%B5%D0%BD%D1%83%D0%B2%D0%B0%D0%BD%D0%BD%D1%8F_%D1%81%D1%82%D0%B0%D1%82%D0%B5%D0%B9?useparsoid=0 old parser] these links work, something in the {{tl|Rename}} template is broken, @[[User:Repakr|Repakr]] might know how to fix it [[User:MonAx|<span style="color:#F68600;">MonAx</span>]] <sup>([[User talk:MonAx|talk]])</sup> 06:08, 18 June 2026 (UTC)The source for the Rename template is at https://uk.wikipedia.org/w/index.php?title=%D0%A8%D0%B0%D0%B1%D0%BB%D0%BE%D0%BD:Rename&action=edit
This is a show-stopper for Parsoid deployment, at least on en.WP. Clicking [edit] for a section of a template documentation page (the green section of a template page) results in an error message. A simple example:
- Go to https://en.wikipedia.org/wiki/Template:Infobox_Chinese#Subtemplates_used_by_Infobox_Chinese with Parsoid enabled
- Click on [edit] to the right of "Subtemplates used by Infobox Chinese"
- Note that you are now trying to edit Template:Documentation instead of Template:Infobox Chinese/doc. The resulting URL is https://en.wikipedia.org/w/index.php?title=Template:Documentation&action=edit§ion=T-5
- See an error message: "You tried to edit a section that does not exist. Because there is no section T-5, there is no place to save your edit. Sections may have been removed or the page moved after you loaded the page. Try to reload the page, purge the page, or bypass your browser cache."
- At the bottom of the error message is "Return to Template:Documentation." [[Template:Documentation]] is linked, and it is not where I came from, so it is an error within the error message.
Clicking [edit] inside the green documentation portion of a template page should take you to an edit screen containing the wikitext of that section.
Using https://en.wikipedia.org/wiki/Template:Infobox_Chinese?useparsoid=0 and then scrolling to the same section and clicking edit results in https://en.wikipedia.org/w/index.php?title=Template:Infobox_Chinese/doc&action=edit§ion=T-5 which is correct.
Ah, sorry for the bogus advice
Thanks for the suggestion. At a high level, in this patch, we did something similar to what you're proposing and preserved the metadata while preprocessing
On https://hu.wikipedia.org/wiki/Wikip%C3%A9dia:T%C3%B6rl%C3%A9sre_javasolt_lapok?uselang=en section edit links link to https://hu.wikipedia.org/w/index.php?title=Sablon:T%C3%B6rl%C3%A9s_link&action=edit§ion=T-1 template page, which is not correct.
We deployed some patches in T391624 and after purging the page, the section edit links under "Június 24." now point to the same place as the legacy parser,
https://hu.wikipedia.org/w/index.php?title=Wikip%C3%A9dia:T%C3%B6rl%C3%A9sre_javasolt_lapok&action=edit§ion=2
and
https://hu.wikipedia.org/w/index.php?title=Wikip%C3%A9dia:T%C3%B6rl%C3%A9sre_javasolt_lapok/Figyelemgazdas%C3%A1g&action=edit§ion=T-1
as opposed to say
https://hu.wikipedia.org/w/index.php?title=Sablon:T%C3%B6rl%C3%A9s_link&action=edit§ion=T-1
Prior to deploy and purging, the link at https://en.wikipedia.org/wiki/Template:Infobox_Chinese?useparsoid=1#Subtemplates_used_by_Infobox_Chinese went to https://en.wikipedia.org/w/index.php?title=Template:Documentation&action=edit§ion=T-5 as you said.
Post-deploy and purging, it now goes to https://en.wikipedia.org/w/index.php?title=Template:Infobox_Chinese/doc&action=edit§ion=T-5 as expected



