Hi!

Found a bug in the "Photo html"-Link. It generates a working picture, but the link to the picture is wrong.
It links to http://www.mysite.com/sites/default/files/photos/image/206
should be http://www.mysite.com/?q=photos/image/206

The wrong part is found in line 525 in your beta 6:

----
$output .= '

' .t('Photo html: '). '

""wrong part! --->"" href="'.file_create_url('photos/image/'.arg(2)).'"> ""<--- wrong part!""

Only local images are allowed.\' class="image-quote-link">

' .t('Photo link: '). '

';
----

The function file_create_url() makes the url to the actual file... but it should just be the url to the node.

Can you please correct this for your next beta?
Thanks!

Comments

eastcn’s picture

Status: Active » Fixed

thank, the next release will fix it

briskday’s picture

I am using 6.1.2, uploaded two albums worth of photos on a development site, then switched the domain to the live site, moved the 'files' directory to to the new location, now my image links look like this:

<img src="http://newdomain.com/sites/newdomain.com/files/sites/testdomain.com/files/photos/soccercamp08_88.jpg">

how do I fix it? help!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.