{"action":"opened","issue":{"url":"https://api.github.com/repos/mileszs/wicked_pdf/issues/458","labels_url":"https://api.github.com/repos/mileszs/wicked_pdf/issues/458/labels{/name}","comments_url":"https://api.github.com/repos/mileszs/wicked_pdf/issues/458/comments","events_url":"https://api.github.com/repos/mileszs/wicked_pdf/issues/458/events","html_url":"https://github.com/mileszs/wicked_pdf/issues/458","id":111469671,"number":458,"title":"Images with wrong path when CDN schema is not specified","user":{"login":"guilhermearaujo","id":1733143,"avatar_url":"https://avatars.githubusercontent.com/u/1733143?v=3","gravatar_id":"","url":"https://api.github.com/users/guilhermearaujo","html_url":"https://github.com/guilhermearaujo","followers_url":"https://api.github.com/users/guilhermearaujo/followers","following_url":"https://api.github.com/users/guilhermearaujo/following{/other_user}","gists_url":"https://api.github.com/users/guilhermearaujo/gists{/gist_id}","starred_url":"https://api.github.com/users/guilhermearaujo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guilhermearaujo/subscriptions","organizations_url":"https://api.github.com/users/guilhermearaujo/orgs","repos_url":"https://api.github.com/users/guilhermearaujo/repos","events_url":"https://api.github.com/users/guilhermearaujo/events{/privacy}","received_events_url":"https://api.github.com/users/guilhermearaujo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-14T19:09:37Z","updated_at":"2015-10-14T19:09:37Z","closed_at":null,"body":"My application has the asset host set like this:\r\n`config.action_controller.asset_host = '//cdn.domain.com'`\r\n\r\nWhen `wicked_pdf_image_tag 'logo.png'` is executed, the output tag will be:\r\n`<img alt=\"Logo\" src=\"file://///cdn.domain.com/assets/images/logo-b375ce445490ac078500cbf7bda369d3.png\">`\r\n\r\nI think this happens because the asset host has no explicit schema (`http:` or `https:`), therefore the `file:///` is prepended to the path.\r\n\r\nWe're using version 0.9.4 of Wicked PDF."}}