Show redirect fragments on Special:ListRedirects
authorFomafix <fomafix@googlemail.com>
Tue, 1 Aug 2017 18:30:34 +0000 (20:30 +0200)
committerFomafix <fomafix@googlemail.com>
Tue, 1 Aug 2017 18:32:56 +0000 (20:32 +0200)
current:
* Redirect → Target
* Redirect with fragment → Target

new:
* Redirect → Target
* Redirect with fragment → Target#Anchor

Change-Id: I78ae08714508ca19eee717a661a62b8ea0a275de

includes/specials/SpecialListredirects.php

index 5f38629..f81c03c 100644 (file)
@@ -137,7 +137,7 @@ class ListredirectsPage extends QueryPage {
                        # Make a link to the destination page
                        $lang = $this->getLanguage();
                        $arr = $lang->getArrow() . $lang->getDirMark();
-                       $targetLink = $linkRenderer->makeLink( $target );
+                       $targetLink = $linkRenderer->makeLink( $target, $target->getFullText() );
 
                        return "$rd_link $arr $targetLink";
                } else {