Commit 84bf92ab533f34ad0405f8b08d1410dc3afb290a

Authored by Gabriel Silva
Committed by Marcos Pereira
1 parent c32e31ff
Exists in stable-spb-1.5

Adds url prefix to files link

Signed-off-by: Gabriel Silva <gabriel93.silva@gmail.com>
Signed-off-by: Tallys Martins <tallysmartins@gmail.com>
(cherry picked from commit 2eabab9c5dccee0d2abf8a4adf1b0f6b47f90734)
app/controllers/public/content_viewer_controller.rb
... ... @@ -209,7 +209,7 @@ class ContentViewerController &lt; 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
... ...