mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-09-24 10:48:29 +00:00
Use wgRelevantPageTitle when setting up talk overlay
wgRelevantPageTitle is generally the same as wgPageTitle. It is different on special pages that act on a page. For example, on Special:WhatLinksHere/Moai wgPageTitle => Special:WhatLinksHere wgRelevantPageTitle => Moai This change would allow Special:Homepage to have the talk overlay connected to its talk tab. If Minerva has such special pages that act on a page AND those pages have talk links AND the 'skins.minerva.talk' happens to be loaded, those links would now show the talk overlay. I found no such cases but I cannot say they don't exist. I also don't know if this change would be a regression or an improvement. Bug: T225659 Change-Id: I5d60ff3f0295f44a6d59cd772e27656b69ef0972
This commit is contained in:
parent
48c3aa0662
commit
5a3a8efc31
|
@ -26,7 +26,7 @@
|
|||
// page)
|
||||
// (https://www.mediawiki.org/wiki/Manual:Using_custom_namespaces#Creating_a_custom_namespace)
|
||||
// The method to get associated namespaces will change later (maybe), see T487
|
||||
pageTitle = mw.Title.newFromText( mw.config.get( 'wgPageName' ) );
|
||||
pageTitle = mw.Title.newFromText( mw.config.get( 'wgRelevantPageName' ) );
|
||||
talkTitle = title ? mw.Title.newFromText( title ) : pageTitle.getTalkPage();
|
||||
|
||||
// Check that there is a valid page and talk title
|
||||
|
|
Loading…
Reference in a new issue