We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a76d441 commit 0251424Copy full SHA for 0251424
src/vanilla/browserLocationConfig.ts
@@ -45,7 +45,7 @@ export class BrowserLocationConfig implements LocationConfig {
45
46
applyDocumentBaseHref() {
47
let baseTag: HTMLBaseElement = document.getElementsByTagName("base")[0];
48
- return this._baseHref = baseTag ? baseTag.href.substr(location.origin.length) : "";
+ return this._baseHref = baseTag ? baseTag.href.substr(location.origin.length) : location.href;
49
}
50
51
dispose() {}
0 commit comments