htmldoc icon indicating copy to clipboard operation
htmldoc copied to clipboard

add file:// method

Open step- opened this issue 9 months ago • 0 comments

Issue https://github.com/michaelrsweet/htmldoc/issues/508 reports that href file://... is mapped to http://remote.../file://..., which will never open in modern browsers capable of opening the "file://" method.

This is a proposed fix for #508.

The screenshot illustrates the use case. After converting an online HTML document to PDF (using the command shown in #507), open the output file in a PDF viewer, scroll down to the link in the screenshot, and click the link. Without this commit the PDF viewer, then the browser, open http://remote.../file://..., and fail. With this commit the "file://" method is preserved, so the browser can successfully open a local file.

screenshot

step- avatar Sep 18 '23 08:09 step-