We should include the protocol in the ajax popup for shortened URLs and Special:UrlShortener.
Thanks for your interest! This is about the UrlShortener extension (see "Tags" on the right).
See https://www.mediawiki.org/wiki/How_to_become_a_MediaWiki_hacker for how to set up a development environment and how to clone a codebase.
Hello @Aklapper and @Legoktm , I tried to reproduce the setting and installed the UrlShortener extension via using the vagrant way, as explained on the extension page. However, I do not see any ajax popup during the shortening process. A clear explanation of how to encounter the issue would be helpful.
I've checked out this bug and I think @Legoktm means that when a URL is provided in the input field whose domain is not supported, the Ajax popup will show a message without the protocol available for this URL. For example;
- If someone inputs "https://www.mediawiki.org/wiki/Extension:UrlShortener" which is not allowed (on localhost) for the domains to be shortened, a message like this will popup URLs to domain www.mediawiki.org are not allowed to be shortened.
- Instead the message should be URLs to domain https://www.mediawiki.org are not allowed to be shortened.
Looking at the extensions/UrlShortener/modules/ext.urlShortener.special.js on L55-L56, urlshortener-error-disallowed-url is being parsed and only host is fed into it. I presume both the host and the protocol attached to the host should be fed into mw.msg().