mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-27 04:06:51 +00:00
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:
parent
57a2de90aa
commit
9f16ff5150
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue