Commit afb1a47621daae32114259dc85a20c24918f213e

Authored by Thiago Ribeiro
1 parent 89ac9804

Fix image address in highlightBlock when in subdir

Signed-off-by: Thiago Ribeiro <thiagitosouza@gmail.com>
Signed-off-by: Simião Carvalho <simiaosimis@gmail.com>
Signed-off-by: Daniela Soares Feitosa <danielafeitosa@colivre.coop.br>

Closes merge request !688
Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/views/blocks/highlights.html.erb
... ... @@ -4,7 +4,7 @@
4 4 <div class='highlights-container'>
5 5 <% block.featured_images.each do |img| %>
6 6 <a href="<%= img[:address] %>" title="<%= img[:title] %>" class="highlights-image-link">
7   - <%= content_tag :img, nil, :src => image_source(img[:image_src]), :alt => img[:title] %>
  7 + <%= image_tag [Noosfero.root, img[:image_src]].join, alt: img[:title] %>
8 8 <p class="highlights-label"><%= img[:title] %></p>
9 9 </a>
10 10 <% end %>
... ...