]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - doc/bugs/Problems_with_graphviz.pm_plug-in_previews.mdwn
New bug report
[git.ikiwiki.info.git] / doc / bugs / Problems_with_graphviz.pm_plug-in_previews.mdwn
index 3b77a48bb670adda35e34821fe3b3b4232a1abe0..c77bbeeaf8b7c2c7b8ecdaf5cc74ab8b52e93e85 100644 (file)
 
 >>> Despite this patch I am still experiencing the problem. Normal page source for a graph contains:
 
-    <div id="content">
-    <p><img src="./graph-c9fd2a197322feb417bdedbca5e99f5aa65b3f06.png" /></p>
+    <div id="content">
+    <p><img src="./graph-c9fd2a197322feb417bdedbca5e99f5aa65b3f06.png" /></p>
     
-    &lt;/div&gt;
+    </div>
 
 >>> preview contains
 
-    &lt;div id="preview"&gt;
-    &lt;p&gt;&lt;img src="./demo/diagrams/graph-c9fd2a197322feb417bdedbca5e99f5aa65b3f06.png" /&gt;&lt;/p&gt;
+    <div id="preview">
+    <p><img src="./demo/diagrams/graph-c9fd2a197322feb417bdedbca5e99f5aa65b3f06.png" /></p>
     
-    &lt;/div&gt;
+    </div>
 
 >>> I don't quite understand why, this makes sense from the CGI path (in my
 >>> case from the root of the site). The browsers appear to be trying to fetch
 >>> `/demo/diagrams/demo/diagrams/graph-c9fd2a197322feb417bdedbca5e99f5aa65b3f06.png`
 >>> (i.e., prepending the required relpath twice). -- [[Jon]]
+
+>>>> Yeah, that patch may have been right once, but it's wrong now;
+>>>> preview mode uses `<base>` to make urls work the same as they would
+>>>> when viewing the html page. 
+>>>>
+>>>> Perhaps this was not noticed for a while while because it only
+>>>> shows up if previewing an *unchanged* graph on a page that has already
+>>>> been built before. Fixed now. [[done]] --[[Joey]]