summaryrefslogtreecommitdiff
path: root/doc/bugs/map_doesn__39__t_calculate___34__common__95__prefix__34___correctly.mdwn
blob: df00621d8459241af07f04ef364a21b39cbcc22f (plain)

Problem with [[plugins/map]]:

Observed behavior:

given map:

[[!map pages="blog/tags/*"]]

received map:

Note that you get "blog" and "tags", and they're both links, but "life" and "tech" are not links.

desired output:

Note that you you don't get "blog" or "tags", and "life" and "tech" are links now.

patch which appears to achieve this:

Discussion

(Disclaimer: I don't know ikiwiki internals.)

Map tries to calculate a "common prefix" between the pagespec and the page being rendered, and then later does some substitutions using the prefix. But the path has /'s in it and the common prefix doesn't, so it never matches correctly. So, add the /'s.

-- [[users/Larry_Clapp]]

Excellent problem description and analysis. Patch [[applied|done]] --[[Joey]]