Bug #88341
closedClean URL Problem with image
0%
Description
Version 9.5.6
In an extension I have the following code line
<f:image class="detail" src="{plant.image.originalResource.publicUrl}" alt="Bild" width="294" onclick="popup('{plant.image.originalResource.publicUrl}');return false;"/>
with the code for popup
function popup(url) { var newImg = new Image(); newImg.src = url; var args ='width='+ newImg.width +',height=' + newImg.height + ',status=no,scrollbars=yes,resizable=yes,location=no'; fenster = window.open(url, 'popup',args); fenster.focus(); return false; }
If I click on the picture, a URL will be generated, which looks like
http://www.mydomain.de/Garten/fileadmin/..../picture.jpg
I get a 404 error, because the URL is wrong. The URL should not have "Garten" inside. It should be start with fileadmin.
Updated by Georg Ringer over 5 years ago
- Status changed from New to Needs Feedback
so what about just adding a /
or maybe you should use the f.uri.image
VH instead.
it also feels very wrong using f:image with src if you just could use <f:image image="{plant.image}"/>
Updated by Riccardo De Contardi about 5 years ago
- Status changed from Needs Feedback to Closed
No feedback since the last 90 days => closing this issue.
If you think that this is the wrong decision or experience the issue again and have more information about how to reproduce your problem (please add if possible a step-by-step guide and more detail about your configuration), please reopen it or ping me.
Thank you and best regards