Skip to content

Commit

Permalink
Update hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Dec 24, 2024
1 parent 0a15144 commit f3015f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ export const handle: Handle = async ({ event, resolve }) => {

if (given in migrated) {
throw redirect(301, migrated[given]);
} else if (given !== pathname) {
// TODO: Why does a trailing slash cause CSS to break?
throw redirect(301, given + search + hash);
}

return resolve(event);
Expand Down

0 comments on commit f3015f0

Please sign in to comment.