Gerrit Patch Uploader has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/291528

Change subject: EditPage: Do not resolve redirect on cancel button
......................................................................

EditPage: Do not resolve redirect on cancel button

Change-Id: I9343c7e97cee7fa6550b186e6a6ffbf3438060a4
---
M includes/EditPage.php
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/28/291528/1

diff --git a/includes/EditPage.php b/includes/EditPage.php
index 8acd036..78adfd9 100644
--- a/includes/EditPage.php
+++ b/includes/EditPage.php
@@ -3503,6 +3503,9 @@
                        $cancelParams['oldid'] = $this->oldid;
                }
                $attrs = [ 'id' => 'mw-editform-cancel' ];
+               if ( $this->getContextTitle()->isRedirect() ) {
+                       $attrs['redirect'] = 'no';
+               }
 
                return Linker::linkKnown(
                        $this->getContextTitle(),

-- 
To view, visit https://gerrit.wikimedia.org/r/291528
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9343c7e97cee7fa6550b186e6a6ffbf3438060a4
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Gerrit Patch Uploader <gerritpatchuploa...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to