Skip to content

Commit

Permalink
split pathname and search (#826)
Browse files Browse the repository at this point in the history
* split pathname and search

* improve
  • Loading branch information
guitavano authored Sep 11, 2024
1 parent 126d7ce commit 7c3e90f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion runtime/features/render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ export const render = async <TAppManifest extends AppManifest = AppManifest>(

const url = new URL(href, req.url);
const request = new Request(url, req);
const params = new URLPattern({ pathname: pathTemplate }).exec(url);
const urlPathTemplate = new URL(pathTemplate, "http://localhost:8000");
const params = new URLPattern({
pathname: urlPathTemplate.pathname,
search: urlPathTemplate.search,
}).exec(url);

const resolvables = await state.resolve({
__resolveType: "resolvables",
Expand Down

0 comments on commit 7c3e90f

Please sign in to comment.