ContentNotFoundError is thrown if HTML file contains links to filenames with multiple dots '.'

Author: ghostCreated Dec 20, 2022Updated Dec 20, 2022

wkhtmltopdf version(s) affected: 0.12.6

OS information Windows 10, 64Bit

Description When the HTML file to be converted contains 'link' entries or 'script' entries referring to files with multiple dots in the filename, wkhtmltopdf returns with error

How to reproduce A sample line is a link entry containing href="/assets/vendors/node_modules/font/css/materialdesignicons.min.css?tag={{ back_tag }}" rel="stylesheet" media="screen,projection,print". If I use the same line but without .min in the css filename everything is fine.

Expected behavior All filenames valid on the host system shall also be accepted by wkhtmltopdf.

Possible Solution