Somewhere between the last D5 version and the latest D6 version, root-relative paths have ceased working.

I have LOTS of slideshows on my site with root-relative paths (e.g. "/files/images/xxx.jpg"). On D5, these were simply sent through to the generated page - e.g. img src="/files/images/xxx.jpg". But on D6, an extra slash is inserted at the start and the slide show is blank (i.e. broken): e.g. img src="//files/images/xxx.jpg".

I am not sure whether this is a pure bug or whether it is a side effect of some change with a deeper, subtler purpose.

Ron.

Comments

rhouse’s picture

I have made up a fix for the above problem, but I suspect it is just a bodge and not the 'real' answer. In slideshow_creator.inc, after this at about line 325:

    $image = theme('image', $ss['#src'], check_plain($title),
      check_plain($title), NULL, FALSE);

Insert a line:

$image = preg_replace("/\"\/\//", '"/', $image);

Ron.

brmassa’s picture

Status: Active » Closed (won't fix)

Guys, there is a drupal.org initiative about unifying some modules. Since Slideshow Creator is by far less powerful and flexible and other solutions, I will not support it more. Please, take a look on other similar modules.