diff --git a/lib/wicked_pdf/wicked_pdf_helper/assets.rb b/lib/wicked_pdf/wicked_pdf_helper/assets.rb index 58b0e6a6..c4db580d 100644 --- a/lib/wicked_pdf/wicked_pdf_helper/assets.rb +++ b/lib/wicked_pdf/wicked_pdf_helper/assets.rb @@ -191,7 +191,7 @@ def webpacker_source_url(source) # In Webpacker 3.2.0 asset_pack_url is introduced if Webpacker::VERSION >= '3.2.0' - asset_pack_url(source) + asset_pack_path(source, host: Rails.application.config.asset_host || root_url) else source_path = asset_pack_path(source) # Remove last slash from root path