Mattflaschen has uploaded a new change for review.
https://gerrit.wikimedia.org/r/56624
Change subject: Remove rel="next" that accompanied returnto.
......................................................................
Remove rel="next" that accompanied returnto.
Bug: 46680
Change-Id: Ifaf40c663dc25e51bffc317144d9bdc1dab21785
---
M RELEASE-NOTES-1.21
M includes/OutputPage.php
2 files changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/24/56624/1
diff --git a/RELEASE-NOTES-1.21 b/RELEASE-NOTES-1.21
index bac6c2a..50fd734 100644
--- a/RELEASE-NOTES-1.21
+++ b/RELEASE-NOTES-1.21
@@ -356,6 +356,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: newchange
Gerrit-Change-Id: Ifaf40c663dc25e51bffc317144d9bdc1dab21785
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Mattflaschen <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits