From 7efac6d577cda3e53733074c6884b0c2e54c58d4 Mon Sep 17 00:00:00 2001 From: Yamagishi Kazutoshi Date: Wed, 3 May 2017 18:31:21 +0900 Subject: [PATCH] Use URI.join for generate asset URL (#2741) * Use URI.join for generate asset URL * to String --- app/helpers/routing_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/routing_helper.rb b/app/helpers/routing_helper.rb index 9ae29ec916..9650ee2867 100644 --- a/app/helpers/routing_helper.rb +++ b/app/helpers/routing_helper.rb @@ -12,6 +12,6 @@ module RoutingHelper end def full_asset_url(source) - Rails.configuration.x.use_s3 ? source : File.join(root_url, ActionController::Base.helpers.asset_url(source)) + Rails.configuration.x.use_s3 ? source : URI.join(root_url, ActionController::Base.helpers.asset_url(source)).to_s end end