Commit 44b7e940d895f5737e4a55a6b635570d5a4e6c19
Exists in
ratings_minor_fixes
and in
3 other branches
Merge branch 'uploaded_files_link' into 'master'
Adds url prefix to files link ContetViewerController wasn't generating the full URL to uploaded files (omitting the prefix, if it exists) See merge request !932
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 | ... | ... |