Matmarex has uploaded a new change for review.

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


Change subject: SpecialPrefixindex: Try not to generate unclickable links
......................................................................

SpecialPrefixindex: Try not to generate unclickable links

Bug: 52543
Change-Id: I1f202d9c07bba730200d226a664e5804aa961b68
---
M includes/specials/SpecialPrefixindex.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/29/82029/1

diff --git a/includes/specials/SpecialPrefixindex.php 
b/includes/specials/SpecialPrefixindex.php
index c4c5c99..28d07ff 100644
--- a/includes/specials/SpecialPrefixindex.php
+++ b/includes/specials/SpecialPrefixindex.php
@@ -210,7 +210,8 @@
                                        $t = Title::makeTitle( 
$s->page_namespace, $s->page_title );
                                        if ( $t ) {
                                                $displayed = $t->getText();
-                                               if ( $this->stripPrefix ) {
+                                               // Try not to generate 
unclickable links
+                                               if ( $this->stripPrefix && 
$prefixLength !== strlen( $displayed ) ) {
                                                        $displayed = substr( 
$displayed, $prefixLength );
                                                }
                                                $link = ( $s->page_is_redirect 
? '<div class="allpagesredirect">' : '' ) .

-- 
To view, visit https://gerrit.wikimedia.org/r/82029
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1f202d9c07bba730200d226a664e5804aa961b68
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Matmarex <matma....@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to