Bug #6780

ResourceViewHelper wrong path to persisted resources

Added by Georg Ortner almost 11 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Must have
Category:
Resource
Start date:
2010-03-11
Due date:
% Done:

100%

Estimated time:
1.00 h
PHP Version:
Has patch:
Complexity:

Description

Template code:
<img src="{f:uri.resource(resource: article.image.originalResource, title: article.image.title)}" style="max-width: 100%" alt="{article.image.title}" />

Result:
<img src="http://mydomain.dev/_Resources/Persistent/78f83c09f79a0951591566bd464c590deb5f9218/.jpg" style="max-width: 100%" alt="" />

There is one slash too much before the extension:
78f83c09f79a0951591566bd464c590deb5f9218/.jpg

#1

Updated by Karsten Dambekalns almost 11 years ago

  • Status changed from New to Accepted
  • Assignee set to Karsten Dambekalns
#2

Updated by Karsten Dambekalns almost 11 years ago

  • Estimated time set to 1.00 h
#3

Updated by Karsten Dambekalns almost 11 years ago

If the title is NULL it will give the result you see.

#4

Updated by Karsten Dambekalns almost 11 years ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r3932.

Also available in: Atom PDF