jenkins-bot has submitted this change and it was merged.
Change subject: Remove rel="next" that accompanied returnto.
......................................................................
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
---
M RELEASE-NOTES-1.21
M includes/OutputPage.php
2 files changed, 2 insertions(+), 1 deletion(-)
Approvals:
Parent5446: Looks good to me, approved
jenkins-bot: Verified
diff --git a/RELEASE-NOTES-1.21 b/RELEASE-NOTES-1.21
index 8835576..131f9c4 100644
--- a/RELEASE-NOTES-1.21
+++ b/RELEASE-NOTES-1.21
@@ -354,6 +354,8 @@
* 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 905b005..0099461 100644
--- a/includes/OutputPage.php
+++ b/includes/OutputPage.php
@@ -2401,7 +2401,6 @@
$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" );
--
To view, visit https://gerrit.wikimedia.org/r/56624
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ifaf40c663dc25e51bffc317144d9bdc1dab21785
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
Gerrit-Reviewer: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Daniel Friesen <[email protected]>
Gerrit-Reviewer: Matmarex <[email protected]>
Gerrit-Reviewer: Parent5446 <[email protected]>
Gerrit-Reviewer: Platonides <[email protected]>
Gerrit-Reviewer: Spage <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits