From 76db13632db6cd980d0ebc7b881d574bdbfcb03b Mon Sep 17 00:00:00 2001 From: Romuald Brillout Date: Fri, 6 Sep 2024 15:04:41 +0200 Subject: [PATCH] comment --- vike/shared/route/executeOnBeforeRouteHook.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vike/shared/route/executeOnBeforeRouteHook.ts b/vike/shared/route/executeOnBeforeRouteHook.ts index c750ceba8b9..6c7e85bbfba 100644 --- a/vike/shared/route/executeOnBeforeRouteHook.ts +++ b/vike/shared/route/executeOnBeforeRouteHook.ts @@ -127,7 +127,7 @@ async function getPageContextFromHook( if (hasProp(hookReturn.pageContext, 'urlLogical')) { assertUsageUrlPathnameAbsolute( - // We type-cast to string instead of assertUsage() in order to save client-side KBs + // We skip validation and type-cast instead of assertUsage() in order to save client-side KBs hookReturn.pageContext.urlLogical as string, `${errPrefix} returned ${pc.cyan('{ pageContext: { urlLogical } }')} but ${pc.cyan('urlLogical')}` )