From 9871bca6dff5bec3859a3c9b00631567d87e1ffa Mon Sep 17 00:00:00 2001 From: Fomafix Date: Sat, 28 May 2016 20:21:07 +0000 Subject: [PATCH] EditPage: Do not resolve redirect on cancel button Change-Id: I9343c7e97cee7fa6550b186e6a6ffbf3438060a4 --- includes/EditPage.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/EditPage.php b/includes/EditPage.php index 8acd036039..f2403fe222 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -3501,6 +3501,8 @@ HTML $cancelParams = []; if ( !$this->isConflict && $this->oldid > 0 ) { $cancelParams['oldid'] = $this->oldid; + } elseif ( $this->getContextTitle()->isRedirect() ) { + $cancelParams['redirect'] = 'no'; } $attrs = [ 'id' => 'mw-editform-cancel' ]; -- 2.20.1