[[Category:Mountains of Panama]] now gets cl_sortkey='Mountains of Panama' instead of 'Category:Mountains of Panama'.
Avoids later issues with sorting.
$sk->postParseLinkColour( $pPLC );
$wgLinkCache->resume();
- $sortkey = $wasblank ? $this->mTitle->getPrefixedText() : $text;
+ if ( $wasblank ) {
+ if ( $this->mTitle->getNamespace() == NS_CATEGORY ) {
+ $sortkey = $this->mTitle->getText();
+ } else {
+ $sortkey = $this->mTitle->getPrefixedText();
+ }
+ } else {
+ $sortkey = $text;
+ }
$wgLinkCache->addCategoryLinkObj( $nt, $sortkey );
$this->mOutput->mCategoryLinks[] = $t ;
$s .= $prefix . $trail ;