Last modified: 2011-10-19 19:26:39 UTC
Click on the "use this file" link for this page on Commons: https://commons.wikimedia.org/w/index.php?title=File:New_Editors_Not_Welcome%3F_When_Wikipedia_articles_trend.pdf&page=1 The question mark in the file name is not urlencoded, which generates a broken link for Page URL: https://commons.wikimedia.org/wiki/File:New_Editors_Not_Welcome?_When_Wikipedia_articles_trend.pdf The link should be: https://commons.wikimedia.org/wiki/File:New_Editors_Not_Welcome%3F_When_Wikipedia_articles_trend.pdf
It's also not expanding the protocol-relative links, which likely breaks uses in some tools.
The ? bit is probably from use of encodeURI() instead of encodeURIComponent: https://commons.wikimedia.org/wiki/MediaWiki:Stockphoto.js this.backlink_url = location.protocol + "//commons.wikimedia.org/wiki/" + encodeURI(wgPageName); After a forced refresh I can see an 'https:' in there (the location.protocol + ... bit) which was added October 13... may indicate some caching bugs (or just that it's still not being loaded ideally through RL).
Added a change req on script talk page using {{editprotected}} tpl: https://commons.wikimedia.org/wiki/MediaWiki_talk:Stockphoto.js#Escaping_fix_in_URLs
Should be fixed. Tested it.
Confirmed works after forcing a refresh here -- thanks!