Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Sep 6, 2024
1 parent c5a5095 commit 76db136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vike/shared/route/executeOnBeforeRouteHook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')}`
)
Expand Down

0 comments on commit 76db136

Please sign in to comment.