Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rossrobino committed Feb 7, 2025
1 parent 8ec5ab3 commit 00eae99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions apps/docs/src/server/+func.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export const handler: Handler = async (req) => {

if (!page.empty) return page.toResponse();

// append trailing slash
if (url.pathname.at(-1) !== "/") {
url.pathname += "/";
return Response.redirect(url, 301);
Expand Down

0 comments on commit 00eae99

Please sign in to comment.