Remove rel="next" that accompanied returnto.
authorMatthew Flaschen <mflaschen@wikimedia.org>
Fri, 29 Mar 2013 18:52:59 +0000 (14:52 -0400)
committerParent5446 <tylerromeo@gmail.com>
Fri, 29 Mar 2013 20:20:50 +0000 (20:20 +0000)
Removed rel="next" link that was put on every
page that had a returnto because otherwise
Firefox (and possibly others) might prefetch
the page, which is not desired in returnto
situations.

Bug: 46680
Change-Id: Ifaf40c663dc25e51bffc317144d9bdc1dab21785

RELEASE-NOTES-1.21
includes/OutputPage.php

index 8835576..131f9c4 100644 (file)
@@ -354,6 +354,8 @@ changes to languages because of Bugzilla reports.
 * BREAKING CHANGE: The Services_JSON class has been removed; if necessary,
   be sure to upgrade affected extensions at the same time (e.g. Collection).
 * Calling Linker methods using a skin will now output deprecation warnings.
+* Pages with a returnto (such as the page when you login or logout), no
+  longer have a rel="next" link tag.
 
 == Compatibility ==
 
index 905b005..0099461 100644 (file)
@@ -2401,7 +2401,6 @@ $templates
                        $proto = PROTO_RELATIVE;
                }
 
-               $this->addLink( array( 'rel' => 'next', 'href' => $title->getFullURL( '', false, $proto ) ) );
                $link = $this->msg( 'returnto' )->rawParams(
                        Linker::link( $title, $text, array(), $query, $options ) )->escaped();
                $this->addHTML( "<p id=\"mw-returnto\">{$link}</p>\n" );