Skip to content

Fix PDF generation for pages with full paths for assets and without a specified base_url.#61

Merged
excid3 merged 2 commits intoexcid3:mainfrom
Viktor-Ivliev:broken-generating-pdf-with-full-paths-html-pages
Jul 15, 2025
Merged

Fix PDF generation for pages with full paths for assets and without a specified base_url.#61
excid3 merged 2 commits intoexcid3:mainfrom
Viktor-Ivliev:broken-generating-pdf-with-full-paths-html-pages

Conversation

@Viktor-Ivliev
Copy link
Contributor

@Viktor-Ivliev Viktor-Ivliev commented Jul 15, 2025

The 0.4.0 release broke the behavior of passing pure html with already full urls when no base_url is passed.

Example:

FerrumPdf.render_pdf(html: render_to_string)

Raises an error: undefined method 'end_with?' for nil

@excid3 excid3 merged commit a708a8b into excid3:main Jul 15, 2025
2 checks passed
@Viktor-Ivliev Viktor-Ivliev deleted the broken-generating-pdf-with-full-paths-html-pages branch August 1, 2025 11:10
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.

2 participants