X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/252c2f70225595312151bcf77ee7c8f5aac0c831..f980e7e4a61e11e73406ed236398904a9ee2b30b:/vendor/plugins/file_column/lib/file_column_helper.rb diff --git a/vendor/plugins/file_column/lib/file_column_helper.rb b/vendor/plugins/file_column/lib/file_column_helper.rb index f4ebe38e7..8c50053a3 100644 --- a/vendor/plugins/file_column/lib/file_column_helper.rb +++ b/vendor/plugins/file_column/lib/file_column_helper.rb @@ -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