Item10944: Item10581 broke links to images when publishing
Current State: Closed
Released In: n/a
Target Release: n/a
broke links to images in the output of PublishPlugin
The problem is the call to
In my case,
This is consistent with the documentation for
, which says If
$path is relative, it is converted to absolute form using rel2abs(). This means that it is taken to be relative to cwd().
I found I could make this work by temporarily
for the call to
, but I doubt if that is an acceptable solution.
I could also make it work by prefixing
if it didn't already start with
. Maybe a better solution would use
, but I haven't tried that.
Both of the solutions I tried gave the correct result, which is
- 06 Jul 2011
No need to chdir, it's enough to remove the leading / from the
- 04 Aug 2011