X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bed9cd00ed166ce346da4b8a9b654ddf86e64e70..eb0f9ff63d5ad5d91ea941420e094dd2980df094:/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