Marcoil has uploaded a new change for review. https://gerrit.wikimedia.org/r/165504
Change subject: Fix inserting category links from non-parser function extensions ...................................................................... Fix inserting category links from non-parser function extensions Change-Id: I84ac4773102be18a461f8bc7d3eb227beef0b83f --- M lib/mediawiki.ApiRequest.js 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid refs/changes/04/165504/1 diff --git a/lib/mediawiki.ApiRequest.js b/lib/mediawiki.ApiRequest.js index de9b0da..22a2b33 100644 --- a/lib/mediawiki.ApiRequest.js +++ b/lib/mediawiki.ApiRequest.js @@ -572,7 +572,7 @@ if (data.parse.categories) { for (i in data.parse.categories) { var category = data.parse.categories[i]; - parsedHtml += '\n<link rel="mw:PageProp/Category" href="./Category:"' + + parsedHtml += '\n<link rel="mw:PageProp/Category" href="./Category:' + encodeURIComponent(category['*']); if (category.sortkey) { parsedHtml += "#" + encodeURIComponent(category.sortkey); -- To view, visit https://gerrit.wikimedia.org/r/165504 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I84ac4773102be18a461f8bc7d3eb227beef0b83f Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/parsoid Gerrit-Branch: master Gerrit-Owner: Marcoil <marc...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits