Westwind.HtmlPackager icon indicating copy to clipboard operation
Westwind.HtmlPackager copied to clipboard

Use append-method instead of "new Uri(BaseUri, url);"

Open StefH opened this issue 3 years ago • 1 comments

This fixes the issue when you provide a basePath which is not in the same folder as the htm file, like this:

string packaged = packager.PackageHtml(@"c:\temp\web\github.htm", @"c:\temp\web\GitHub_files");

StefH avatar Jul 19 '22 15:07 StefH

@RickStrahl Please take a look at this PR.

More details also here: https://stackoverflow.com/questions/372865/path-combine-for-urls

StefH avatar Jul 19 '22 15:07 StefH