From d518c724370a3bc7b852a4b74b26f4c5832e25c6 Mon Sep 17 00:00:00 2001 From: Matt Brophy Date: Mon, 5 Dec 2022 17:14:41 -0500 Subject: [PATCH] doh --- packages/router/history.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/router/history.ts b/packages/router/history.ts index 90aece0a49..e5117817b7 100644 --- a/packages/router/history.ts +++ b/packages/router/history.ts @@ -573,7 +573,7 @@ export function createClientSideURL(location: Location | string): URL { base, `No window.location.(origin|href) available to create URL for href: ${href}` ); - return new URL(href, window.location.origin); + return new URL(href, base); } export interface UrlHistory extends History {}