X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/77303f1e5ac466d59129f6cf083e5f6d6ac09288..3244635aa11878135a014cf2c9ec9177f8e9d0ba:/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