There was an error while loading. Please reload this page.
1 parent cb1e1e6 commit e2504e2Copy full SHA for e2504e2
1 file changed
packages/astro/src/client/routeProvider.ts
@@ -31,7 +31,7 @@ function readRouteNameFromMeta(): string | undefined {
31
* which is why `resolveRoute` refuses to answer for anything but the current path.
32
*/
33
export function createAstroRouteProvider(): RouteProvider {
34
- const isCurrentPath = (url: URL): boolean => url.pathname === WINDOW.location?.pathname;
+ const isCurrentPath = (url: { pathname: string }): boolean => url.pathname === WINDOW.location?.pathname;
35
36
return {
37
resolveRoute: url => (isCurrentPath(url) ? readRouteNameFromMeta() : undefined),
0 commit comments