Page MenuHomePhabricator

Transcluded edit section links direct to wrong page title
Closed, ResolvedPublic

Description

When using Lua to transclude a wiki page using frame:expandTemplate{}, the edit section links in any transcluded headers direct to the page being directly viewed instead of the page originally containing the headers, resulting in either a "Cannot find section" error or going to the wrong section if clicked, depending on whether the viewed page has in itself a section with that number. The edit section link seems to be otherwise correctly formatted, even including the correct section number, but the page target (the title= parameter of the link) is incorrect.


Version: unspecified
Severity: normal

Details

Reference
bz55525

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:20 AM
bzimport added a project: Scribunto.
bzimport set Reference to bz55525.
bzimport added a subscriber: Unknown Object (MLST).

Thanks for taking the time to report this!

Is there a testcase/example where this can be seen?

Change 89011 had a related patch set uploaded by Anomie:
Use a child frame in frame:expandTemplate

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

  • Bug 60207 has been marked as a duplicate of this bug. ***

Change 89011 merged by jenkins-bot:
Use a child frame in frame:expandTemplate

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

Should be deployed to WMF wikis with 1.23wmf13, see https://www.mediawiki.org/wiki/MediaWiki_1.23/Roadmap for the schedule.