Commit e212758d59c9c995bb2f21546c7be6fa25d0b8f8
Committed by
Macartur Sousa
1 parent
f19ac86c
Exists in
elasticsearch_api
Adds url prefix to files link
Signed-off-by: Gabriel Silva <gabriel93.silva@gmail.com> Signed-off-by: Tallys Martins <tallysmartins@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/controllers/public/content_viewer_controller.rb
... | ... | @@ -209,7 +209,7 @@ class ContentViewerController < ApplicationController |
209 | 209 | end |
210 | 210 | |
211 | 211 | if @page.published && @page.uploaded_file? |
212 | - redirect_to @page.public_filename | |
212 | + redirect_to "#{Noosfero.root}#{@page.public_filename}" | |
213 | 213 | else |
214 | 214 | send_data data, @page.download_headers |
215 | 215 | end | ... | ... |