From 9f16ff515086a3e7bb43c0ab2a57836e90bd3e8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Inez=20Korczyn=CC=81ski?= Date: Thu, 16 May 2013 15:02:14 -0700 Subject: [PATCH] Keep veaction=edit in the url when VE runs in debug mode so it keeps user just refresh the page in order to get into the edit mode. Change-Id: I32c7135c3b989348d2d5722977cec2f81f08c162 --- modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js b/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js index d1ac19aa18..64b4e1e416 100644 --- a/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js +++ b/modules/ve/init/mw/targets/ve.init.mw.ViewPageTarget.js @@ -852,7 +852,7 @@ ve.init.mw.ViewPageTarget.prototype.setupSkinTabs = function () { } // If there got here via veaction=edit, hide it from the URL. - if ( this.currentUri.query.veaction === 'edit' && window.history.replaceState ) { + if ( !ve.debug && ( this.currentUri.query.veaction === 'edit' && window.history.replaceState ) ) { // Remove the veaction query parameter, but don't affect the original mw.Uri instance uriClone = this.currentUri.clone(); delete uriClone.query.veaction;