Commit 2eabab9c5dccee0d2abf8a4adf1b0f6b47f90734
1 parent
1ae8dae3
Exists in
ratings_minor_fixes
and in
3 other branches
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 | ... | ... |