Problem with media links in Static Pages

Creating and modifying plugins.
Post Reply
Ths
Posts: 3
Joined: Thu Mar 03, 2011 12:52 pm

Problem with media links in Static Pages

Post 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?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Problem with media links in Static Pages

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
konus
Regular
Posts: 334
Joined: Mon Jun 16, 2008 1:57 pm
Location: Dresden, Germany
Contact:

Re: Problem with media links in Static Pages

Post 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. :-)
Post Reply