Skip to content

Commit 210741a

Browse files
committed
fix: support case insensitive trailing slash redirects
1 parent dedf2c4 commit 210741a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/server.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,8 @@ export function createApp(siteId: string) {
349349
// Trailing slash redirect.
350350
if (
351351
manifest.redirectTrailingSlashes !== false &&
352-
manifestPaths[`${urlPath}/index.html`]
352+
(manifestPaths[`${urlPath}/index.html`] ||
353+
manifestPaths[`${urlPath.toLowerCase()}/index.html`])
353354
) {
354355
const destination = `${urlPath}/`;
355356
res.redirect(301, destination);

0 commit comments

Comments
 (0)