Skip to content

Commit

Permalink
Merge pull request #973 from vkalach/fix/webpacker_helper
Browse files Browse the repository at this point in the history
fix url generating in webpacker helper
  • Loading branch information
unixmonkey authored Aug 31, 2021
2 parents 2e917f4 + f1355ea commit ae725e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wicked_pdf/wicked_pdf_helper/assets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae725e8

Please sign in to comment.