(split from [[Problems_with_graphviz.pm_plug-in]])
[graphviz] generates image URLs relative to the page being rendered, which means the URLs wont work when previewing a graph from the CGI script.
>> Here is an updated patch againt ikiwiki-2.5:
>>> Applied, thanks. --[[Joey]]
--- IkiWiki/Plugin/graphviz.pm.orig 2007-07-27 11:35:05.000000000 +0200
+++ IkiWiki/Plugin/graphviz.pm 2007-07-27 11:36:02.000000000 +0200
@@ -69,7 +69,12 @@ sub render_graph (\%) {
}
}
- return "\n";
+ if ($params{preview}) {
+ return "
\n";
+ }
+ else {
+ return "
\n";
+ }
}
sub graph (@) {
>> --[[HenrikBrixAndersen]]
>>> Despite this patch I am still experiencing the problem. Normal page source for a graph contains: