Page 1 of 1

Problem with media links in Static Pages

Posted: Thu Mar 03, 2011 12:55 pm
by Ths
Hello,

I'm experiencing an odd problem with the Media Libary / Static Pages plugin. Whenever I change something in the Media Library (i.e. put a file in a different folder, change a file name etc.) the URL's to media files (images) in my Static Pages change. For instance, /uploads/articles/image.jpg becomes /uploads/articles/articles/articles/image.jpg.

Is there any resolution for this?

Re: Problem with media links in Static Pages

Posted: Fri Mar 04, 2011 11:37 am
by garvinhicking
Hi!

Serendipity has a code that tries to change the URLs in staticpages to reflect the new location of a renamed picture.

Does it duplicate the path name when you rename OR move a file to a different directory? Or maybe only when you rename a file in the same directory, or only when you move a file to a different directory? Inside the code, this would make a difference.

Also please state which version of serendipity and the staticpage plugin you are using; the mentioned code has been altered a few times since it was first 'conceived' ;)

Regards,
Garvin

Re: Problem with media links in Static Pages

Posted: Tue Mar 08, 2011 10:30 am
by konus
I think this is the bug, I mentioned earlier and filed in the bugtracker.

I don't know, if this is still the same problem. Because I have several static pages with images inside, I kind of "fear" testing it again. :-)