Preview strips out links in the topic text, but leaves the links of the form. 'Click' and you're gone, leaving your fresh data behind.

Now stripping can't be done in Preview.pm, as the form template is rendered by Form.pm.

And Form.pm has the nasty habit to render the form topic name %A_TITLE% as broken link web.topic][topic that just needs a template to add the double brackets. But that makes it impossible to not have the link!

Culprit:

$text =~ s/%A_TITLE%/$this->{web}.$this->{topic}][$this->{topic}/g;

-- ArthurClemens - 14 Feb 2009

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads