summaryrefslogtreecommitdiff
path: root/js/url.ts
diff options
context:
space:
mode:
Diffstat (limited to 'js/url.ts')
-rw-r--r--js/url.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/url.ts b/js/url.ts
index a2562b9a3..f22198da4 100644
--- a/js/url.ts
+++ b/js/url.ts
@@ -333,7 +333,7 @@ export class URL {
password: baseParts.password,
hostname: baseParts.hostname,
port: baseParts.port,
- path: resolvePathFromBase(urlParts.path, baseParts.path),
+ path: resolvePathFromBase(urlParts.path, baseParts.path || "/"),
query: urlParts.query,
hash: urlParts.hash
};