mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 14:56:20 +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()
|
||||
)
|
||||
} );
|
||||
if ( window.history.replaceState ) {
|
||||
delete currentUri.query.venotify;
|
||||
window.history.replaceState( this.popState, document.title, currentUri );
|
||||
}
|
||||
|
||||
delete currentUri.query.venotify;
|
||||
}
|
||||
|
||||
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();
|
||||
|
|
Loading…
Reference in a new issue