mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "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."
This commit is contained in:
commit
6033608ba1
|
@ -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