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

Prepend scheme and hostname to relative links #149

Open
vCra opened this issue Jul 21, 2017 · 0 comments
Open

Prepend scheme and hostname to relative links #149

vCra opened this issue Jul 21, 2017 · 0 comments

Comments

@vCra
Copy link

vCra commented Jul 21, 2017

Currently, when generating a pdf from a html file, I have to prepend {{ request.scheme }}://{{ request.get_host }} inside of my html, so that wkhtmltopdf will be able to access. Before the html is sent off to wkhtmltopdf, it should be parsed to check if any relative links are present, and if so, change them so that they are absolute.

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

No branches or pull requests

1 participant