Last modified: 2008-03-21 22:05:33 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 5745 - Special:Whatlinkshere shows no more than 500 links through each redirect
Special:Whatlinkshere shows no more than 500 links through each redirect
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch-need-review
Depends on:
  Show dependency treegraph
Reported: 2006-04-28 12:25 UTC by Stuart Orford
Modified: 2008-03-21 22:05 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description Stuart Orford 2006-04-28 12:25:17 UTC
Special:Whatlinkshere shows up to 500 direct links per page, with options for
"previous/next 500". For each incoming redirect, it additionally shows up to 500
links through that redirect. However, this second limit of 500 seems to be
unrelated to the first limit, and no "next 500" option is available. See
[[w:en:Liberal Democrats]], where there are under 500 direct links, but over
2000 through [[Liberal Democrats (UK)]], and there is no way of viewing all the
redirected links on [[Special:Whatlinkshere/Liberal Democrats]].
[[Special:Whatlinkshere/Liberal Democrats (UK)]] shows all the redirected links
Comment 1 Rob Church 2006-05-06 15:25:53 UTC
Probably a hard limit due to performance concerns.
Comment 2 Chad H. 2007-07-15 02:20:50 UTC
It is currently set to a hard limit. The following patch would allow a global variable to set that number.

Index: SpecialWhatlinkshere.php
--- SpecialWhatlinkshere.php	(revision 24102)
+++ SpecialWhatlinkshere.php	(working copy)
@@ -73,7 +73,7 @@
 	 * @private
 	function showIndirectLinks( $level, $target, $limit, $from = 0, $back = 0 ) {
-		global $wgOut;
+		global $wgOut, $wgShowMaxRedirectLinks;
 		$fname = 'WhatLinksHerePage::showIndirectLinks';
 		$dbr = wfGetDB( DB_READ );
 		$options = array();
@@ -240,7 +240,7 @@
 			if ( $row->page_is_redirect ) {
 				if ( $level < 2 ) {
-					$this->showIndirectLinks( $level + 1, $nt, 500 );
+					$this->showIndirectLinks( $level + 1, $nt, $wgShowMaxRedirectLinks );
 			$wgOut->addHTML( "</li>\n" );
Comment 3 Huji 2008-03-21 22:05:33 UTC
I applied this with a few changes in r32303. If more than 500 such links are wanted on a wiki, $wgMaxRedirectLinksRetrieved can be set to the desired value on LocalSetting.php

Note You need to log in before you can comment on or make changes to this bug.