We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9c92ff commit 9a0a321Copy full SHA for 9a0a321
packages/router-core/src/router.ts
@@ -969,7 +969,7 @@ export class RouterCore<
969
970
this.origin = this.options.origin
971
if (!this.origin) {
972
- if (!this.isServer) {
+ if (!this.isServer && window?.origin && window.origin !== 'null') {
973
this.origin = window.origin
974
} else {
975
// fallback for the server, can be overridden by calling router.update({origin}) on the server
0 commit comments