mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 23:05:35 +00:00
Fix JS error when opening VE on redirect page
Change-Id: I95dd2dc2c52ffa3d420a579592e84001bd2b10e8
This commit is contained in:
parent
49ce63020c
commit
989fd6214c
|
@ -1520,7 +1520,10 @@ ve.init.mw.ViewPageTarget.prototype.maybeShowDialogs = function () {
|
|||
}
|
||||
|
||||
if ( this.surface.getModel().metaList.getItemsInGroup( 'mwRedirect' ).length ) {
|
||||
this.surface.getDialogs().getWindow( 'meta' ).open( { 'page': 'settings' } );
|
||||
this.surface.getDialogs().getWindow( 'meta' ).open(
|
||||
this.surface.getModel().getFragment(),
|
||||
{ 'page': 'settings' }
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue