Fix JS error when opening VE on redirect page

Change-Id: I95dd2dc2c52ffa3d420a579592e84001bd2b10e8
This commit is contained in:
Roan Kattouw 2014-04-11 10:13:51 -07:00
parent 49ce63020c
commit 989fd6214c

View file

@ -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' }
);
}
};