Append redirect=no to RecentChanges/Watchlist redirect entries

This change adds redirect=no in the URL of redirect entries in the RecentChanges or in the Watchlist.
Entries which are not redirects will not be affected.
Some typos in documentation were also fixed.

Bug: 890
Change-Id: I79593811d92b2f57abd742c8ba9e66769d8bc9b7
This commit is contained in:
withoutaname 2014-04-25 17:50:18 -07:00
parent 1622e08767
commit 866f478dc9
4 changed files with 8 additions and 3 deletions

View file

@ -18,6 +18,8 @@ production.
option and a size specification set will now always ignore the provided
size and display an unscaled image, as the documentation has always
claimed it would.
* (bug 890) Links in Special:RecentChanges and Special:Watchlist no longer
follow redirects to their target pages.
=== Web API changes in 1.24 ===

View file

@ -93,7 +93,7 @@ class FeedItem {
}
/**
* set the unique id of an item
* Set the unique id of an item
*
* @param string $uniqueId Unique id for the item
* @param bool $rssIsPermalink Set to true if the guid (unique id) is a permalink (RSS feeds only)
@ -141,7 +141,7 @@ class FeedItem {
}
/**
* Get the title of this item
* Get the date of this item
*
* @return string
*/

View file

@ -344,6 +344,9 @@ class ChangesList extends ContextSource {
*/
public function insertArticleLink( &$s, &$rc, $unpatrolled, $watched ) {
$params = array();
if ( $rc->getTitle()->isRedirect() ) {
$params = array( 'redirect' => 'no' );
}
$articlelink = Linker::linkKnown(
$rc->getTitle(),

View file

@ -527,7 +527,7 @@ class SpecialRecentChanges extends ChangesListSpecialPage {
}
/**
* Create a input to filter changes by categories
* Create an input to filter changes by categories
*
* @param FormOptions $opts
* @return array