diff --git a/resources/ext.popups.core.js b/resources/ext.popups.core.js index 36a1a0108..fbb5b6bcf 100644 --- a/resources/ext.popups.core.js +++ b/resources/ext.popups.core.js @@ -154,7 +154,7 @@ return mw.popups.$content .find( 'a[href][title]:not(' + mw.popups.IGNORE_CLASSES.join(', ') + ')' ) .filter( function () { - return ( this.href === mw.config.get( 'wgServer' ) + mw.util.getUrl( this.title ) ); + return ( this.href.replace(/^https?:\/\//,'//') === ( mw.config.get( 'wgServer' ) + mw.util.getUrl( this.title ) ).replace(/^https?:\/\//,'//') ); } ); };