|
|
@@ -804,8 +804,9 @@ this.singlefile.lib.core = this.singlefile.lib.core || (() => {
|
|
|
// ignored
|
|
|
}
|
|
|
if (resolvedURL) {
|
|
|
- if (resolvedURL.startsWith(this.options.url + "#")) {
|
|
|
- resolvedURL = resolvedURL.substring(this.options.url.length);
|
|
|
+ const url = Util.normalizeURL(this.options.url);
|
|
|
+ if (resolvedURL.startsWith(url + "#")) {
|
|
|
+ resolvedURL = resolvedURL.substring(url.length);
|
|
|
}
|
|
|
try {
|
|
|
element.setAttribute("href", resolvedURL);
|