Fix base url with using pathname (#361)
Fix base url with using pathname (#361)

Base url used as root for relative paths and should contain whole path without query string.
E.g. there is `<link href="styles/widget.css" rel="stylesheet">` on page `https://example.tld/project/`. Relative link will be `https://example.tld/styles/widget.css` but should be `https://example.tld/project/styles/widget.css`
This works even if base url will be `https://example.tld/project/index.html`
GoogleChrome/rendertron,GoogleChrome/rendertron,GoogleChrome/rendertron