https://bugzilla.wikimedia.org/show_bug.cgi?id=36334
Web browser: ---
Bug #: 36334
Summary: If page is redirect, add body class "page-redirect"
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: General/Unknown
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
Mobile Platform: ---
I have page headers which I only want to return on content pages.
I don't want the header on redirect pages. But such return the body class
"ns-subject". So best seems to add an own redirect class:
Skin.php > getPageClasses() >
...
} else {
$type = 'ns-subject';
}
// If page is redirect add page-redirect
if( $title->isRedirect() ) {
$type .= ' page-redirect';
}
...
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l