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
This commit is contained in:
Inez Korczyński 2013-05-16 15:02:14 -07:00
parent 57a2de90aa
commit 9f16ff5150

View file

@ -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;