Skip to content

Commit d12bc05

Browse files
committed
pass the entire href into preact-iso Location context
1 parent eb65985 commit d12bc05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class MyController {
2626
@Get("/app/:page")
2727
@Get("/app/:page/:sup1")
2828
renderMyRouteAwareComponent(ctx: Context) {
29-
return ssr(MyRouteAwareComponent, { url: ctx.request.url.pathname });
29+
return ssr(MyRouteAwareComponent, { url: ctx.request.url.href });
3030
}
3131

3232
@Get("/components/:parentComponent/routes/:routeComponent")

0 commit comments

Comments
 (0)