mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 10:35:48 +00:00
Merge "Always replace state with VE tag when loading"
This commit is contained in:
commit
266bc709f6
|
@ -135,10 +135,15 @@ ve.init.mw.ViewPageTarget = function VeInitMwViewPageTarget() {
|
||||||
new mw.Title( this.pageName ).toText()
|
new mw.Title( this.pageName ).toText()
|
||||||
)
|
)
|
||||||
} );
|
} );
|
||||||
if ( window.history.replaceState ) {
|
|
||||||
delete currentUri.query.venotify;
|
delete currentUri.query.venotify;
|
||||||
window.history.replaceState( this.popState, document.title, currentUri );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( window.history.replaceState ) {
|
||||||
|
// This is to stop the back button breaking when it's supposed to take us back out
|
||||||
|
// of VE. It used to only be called when venotify is used. FIXME: there should be
|
||||||
|
// a much better solution than this.
|
||||||
|
window.history.replaceState( this.popState, document.title, currentUri );
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setupSkinTabs();
|
this.setupSkinTabs();
|
||||||
|
|
Loading…
Reference in a new issue