From: Matthew Flaschen Date: Fri, 29 Mar 2013 18:52:59 +0000 (-0400) Subject: Remove rel="next" that accompanied returnto. X-Git-Tag: 1.31.0-rc.0~20172 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dcompta/operations/modifier.php?a=commitdiff_plain;h=dabbbc7d2a88ceb9efce5742af05e848dbcaa66e;p=lhc%2Fweb%2Fwiklou.git Remove rel="next" that accompanied returnto. 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 --- diff --git a/RELEASE-NOTES-1.21 b/RELEASE-NOTES-1.21 index 8835576c9f..131f9c4619 100644 --- a/RELEASE-NOTES-1.21 +++ b/RELEASE-NOTES-1.21 @@ -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 == diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 905b005521..0099461a9e 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -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( "

{$link}

\n" );