copySectionLink.js issue with question marks
On articles such as Who Shot Johnny Rock?, the question mark gets put into the pilcrow links unencoded, which would make it incorrectly not a part of the page title. This can be observed by using linkclassifier and seeing that the pilcrow links on that particular page get flagged as self redirects (because such a redirect exists in that case).
It looks like this can be fixed with use of mw.util.wikiUrlencode.
I hope you don't mind me forking the script if you are too busy to work on this for the next week or so (I may eventually need such a fork to fix any compatibility issues that arise with non-WMF wikis, anyway). --SoledadKabocha (talk) 06:55, 25 November 2013 (UTC)
- Actually, forget about the wikiUrlEncode stuff... I just remembered I already had to deal with the non-WMF compatibility issues elsewhere. The script needs to be changed to not make any assumptions about the URL paths used by the wiki, specifically by setting the
hrefof each link to
window.location.pathname+window.location.search+'#'+$(this).attr('id')- this will fix the question mark encoding issue at the same time. --SoledadKabocha (talk) 07:07, 25 November 2013 (UTC)