[pmwiki-devel] Bug or feature: (:pagelist..:) with include can cause redirections

Christian Ridderström christian.ridderstrom at gmail.com
Wed Aug 20 04:16:41 CDT 2008


Hi,

I upgraded a wiki and suddendly encountered a new bug or feature, here's 
the background.

* I'm using a custom pagelist format that includes the first paragraph of
   the page.
* One of the pages contained a (:redirect...:) on the first line
* When I upgraded the wiki, the resulting pagelist now caused a redirect.

The redirection happens because my pagelist format uses include. So my 
questions are as follows:

* Should the default for (:include:) be that (:redirect:) is
   interpreted?

* Is there a way to disable (:include:) from parsing (:redirect:)?
   (This would be useful with e.g. pagelists...)

regards,
/Christian

PS. I solved my problem by placing a dummy paragraph before the 
(:redirect:)-directive, thus preventing the actual directive from being 
included and parsed.

-- 
Christian Ridderström, +46-8-768 39 44            http://www.md.kth.se/~chr


More information about the pmwiki-devel mailing list