Fix file_column plugin to generate absolute URLs without falling over
in a heap and then use that in the user details view.
This commit is contained in:
parent
783748b1e5
commit
e72ebb7eac
2 changed files with 2 additions and 4 deletions
|
@ -76,7 +76,7 @@ module FileColumnHelper
|
|||
return nil unless relative_path
|
||||
|
||||
url = ""
|
||||
url << request.relative_url_root.to_s if absolute
|
||||
url << request.protocol << request.host_with_port if absolute
|
||||
url << "/"
|
||||
url << object.send("#{method}_options")[:base_url] << "/"
|
||||
url << relative_path
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue