diff --git a/packages/ui-next/index.ts b/packages/ui-next/index.ts index 74e257f79..fcacecad3 100644 --- a/packages/ui-next/index.ts +++ b/packages/ui-next/index.ts @@ -86,7 +86,7 @@ export async function apply(ctx: Context) { async render(name, args, context) { const data: PageData = { HYDRO_INJECTED: true, - name, + name: context.handler.context._matchedRouteName, args, url: context.handler.context.req.url!, routeMap: ctx.server.routeMap,