diff --git a/packages/astro/src/core/routing/match.ts b/packages/astro/src/core/routing/match.ts index 97659253e3..40a8b95fba 100644 --- a/packages/astro/src/core/routing/match.ts +++ b/packages/astro/src/core/routing/match.ts @@ -13,5 +13,5 @@ export function matchRoute(pathname: string, manifest: ManifestData): RouteData /** Finds all matching routes from pathname */ export function matchAllRoutes(pathname: string, manifest: ManifestData): RouteData[] { - return manifest.routes.filter((route) => route.pattern.test(pathname)); + return manifest.routes.filter((route) => route.pattern.test(decodeURI(pathname))); }