Change-Id: If802b23285762b0eb0d01eba7fd52761dcf9fb86
// Generate the same URL on client side as the one generated in ImagePage::openShowImage.
// We avoid using the URL in the link directly since it could have been manipulated (T68608)
page = Number( mw.util.getParamValue( 'page', this.href ) );
// Generate the same URL on client side as the one generated in ImagePage::openShowImage.
// We avoid using the URL in the link directly since it could have been manipulated (T68608)
page = Number( mw.util.getParamValue( 'page', this.href ) );
- url = mw.util.getUrl( mw.config.get( 'wgPageName' ), { page: page } );
+ url = mw.util.getUrl( null, { page: page } );
switchPage( url );
e.preventDefault();
switchPage( url );
e.preventDefault();