Skip to content

Commit b0811fa

Browse files
committed
fix: avoid infinite redirect loop
1 parent 3ccdf4d commit b0811fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ export function createApp(siteId: string) {
367367
(manifestPaths[`${urlPath}/index.html`] ||
368368
manifestPaths[`${urlPath.toLowerCase()}/index.html`])
369369
) {
370-
const destination = preserveQueryString(req, urlPath);
370+
const destination = preserveQueryString(req, `${urlPath}/`);
371371
res.redirect(301, destination);
372372
return;
373373
}

0 commit comments

Comments
 (0)