Flow generates
href="//wikimediafoundation.org/wiki/Terms%20of%20Use#7.%20Licensing%20of%20Content"
but it should be
href="//wikimediafoundation.org/wiki/Terms_of_Use#7._Licensing_of_Content"
(the first link does not work as expected).
Flow generates
href="//wikimediafoundation.org/wiki/Terms%20of%20Use#7.%20Licensing%20of%20Content"
but it should be
href="//wikimediafoundation.org/wiki/Terms_of_Use#7._Licensing_of_Content"
(the first link does not work as expected).
This is a bug in Parsoid:
$ echo "[[wmf:Terms of Use#7. Licensing of Content]]" | node bin/parse.js --normalize <p><a href="//wikimediafoundation.org/wiki/Terms of Use#7. Licensing of Content" title="wmf:Terms of Use">wmf:Terms of Use#7. Licensing of Content</a></p>
There are two things going on here. One is that spaces are used instead of underscores in the URL path (/wiki/Terms of Use instead of /wiki/Terms_of_Use); this is incorrect but MediaWiki will redirect to the correct URL. The other is that spaces are used instead of underscores in the fragment (#7. Licensing of Content instead of #7._Licensing_of_Content) which is incorrect and fails to point to the correct section.
There are two things going on here. One is that spaces are used instead of underscores in the URL path (/wiki/Terms of Use instead of /wiki/Terms_of_Use); this is incorrect but MediaWiki will redirect to the correct URL. The other is that spaces are used instead of underscores in the fragment (#7. Licensing of Content instead of #7._Licensing_of_Content) which is incorrect and fails to point to the correct section.
This also breaks with Unicode characters:
$ echo "[[Foo#עברית]]" | node bin/parse.js --normalize <p><a href="Foo#עברית" title="Foo">Foo#עברית</a></p>
(should be Foo#.D7.A2.D7.91.D7.A8.D7.99.D7.AA)