Commit cd3b5fda authored by Tallys Martins's avatar Tallys Martins
Browse files

Fix images url on gallery when Noosfero's under subdirectory

Signed-off-by: default avatarTallys Martins <>
parent 1e0cc2a4
......@@ -2,7 +2,7 @@
<%= link_to '',
:class => 'image',
:style => 'background-image: url(%s)'% uploaded_file.public_filename(:thumb)
:style => 'background-image: url(%s)'% [Noosfero.root, uploaded_file.public_filename(:thumb)].join
<span><%=h uploaded_file.title %></span>
<% else %>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment