Skip to content

Commit 0251424

Browse files
fix(browserLocationConfig): If no base href found, use location.href (not empty string)
1 parent a76d441 commit 0251424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vanilla/browserLocationConfig.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class BrowserLocationConfig implements LocationConfig {
4545

4646
applyDocumentBaseHref() {
4747
let baseTag: HTMLBaseElement = document.getElementsByTagName("base")[0];
48-
return this._baseHref = baseTag ? baseTag.href.substr(location.origin.length) : "";
48+
return this._baseHref = baseTag ? baseTag.href.substr(location.origin.length) : location.href;
4949
}
5050

5151
dispose() {}

0 commit comments

Comments
 (0)