Page MenuHomePhabricator

Parsoid: Category links created with default-set parameters get faulty sortkey set
Closed, ResolvedPublic

Description

Have a template like so:

[[Category:Foo {{{1|bar}}}]]

Use it in a page like so:

{{Categories|Bob}}

Output from Parsoid:

<link rel="mw:WikiLink/Category" href="./Category:Foo_Bob#Category:Foo%20Bob" data-parsoid="{&quot;tsr&quot;:[0,18],&quot;src&quot;:&quot;{{Categories|Bob}}&quot;,&quot;dsr&quot;:[0,18,null,null]}" about="#mwt1" typeof="mw:Object/Template">
<meta about="#mwt1" property="mw:TemplateParams" content="[{&quot;id&quot;:&quot;mwt1&quot;,&quot;target&quot;:&quot;Template:Categories&quot;,&quot;params&quot;:{&quot;1&quot;:&quot;Bob&quot;}}]">

Note the wrongly-set category sort key of "Category:Foo%20Bob" - should instead be blank.


Version: unspecified
Severity: normal

Details

Reference
bz47028

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 1:23 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz47028.

And about to be merged once Jenkins gets around to do it.

[Parsoid component reorg by merging JS/General and General. See bug 50685 for more information. Filter bugmail on this comment. parsoidreorg20130704]