Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix url generating in webpacker helper #973

Merged
merged 1 commit into from
Aug 31, 2021
Merged

fix url generating in webpacker helper #973

merged 1 commit into from
Aug 31, 2021

Conversation

vkalach
Copy link
Contributor

@vkalach vkalach commented Apr 23, 2021

There are a lot of issues that are connected with this fix.
Some of them: #961, #923, #860

Most of the projects don't use the asset_host config. I think it can help many people to avoid monkey patching and so on.

Copy link
Collaborator

@unixmonkey unixmonkey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! Thank you for this.

@unixmonkey unixmonkey merged commit ae725e8 into mileszs:master Aug 31, 2021
davegudge added a commit to skillstream/wicked_pdf that referenced this pull request Nov 18, 2021
Since the change in mileszs#973, I've experienced an issue where images are not
being embedding in the pdf generated (in non development environments)
when using the following:

```
image_tag wicked_pdf_asset_pack_path("static/example.png")
```

For context: The pdfs are being generated via a background job on a
separate sever to the webapp, so using the `asset_host` option is not
ideal, as the pdf would then need to fetch the assets from another server
when they're already available locally. I have tried For context setting
`Rails.application.config.asset_host` via `production.rb` to no avail.

This commit reinstates the original functionality prior to mileszs#973, whist
still retaining the new functionality add via mileszs#973.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants