diff --git a/website/agb/src/app/tapir/dpl/page.tsx b/website/agb/src/app/tapir/dpl/page.tsx index eb136415..9109487e 100644 --- a/website/agb/src/app/tapir/dpl/page.tsx +++ b/website/agb/src/app/tapir/dpl/page.tsx @@ -6,7 +6,7 @@ export const metadata: Metadata = { title: "Dungeon Puzzler Redirect", }; -const REDIRECT_TO = "/showcase/the-dungeon-puzzler's-lament"; +const REDIRECT_TO = "/showcase/the-dungeon-puzzlers-lament"; export default function DplRedirectPage() { redirect(REDIRECT_TO); diff --git a/website/agb/src/sluggify.ts b/website/agb/src/sluggify.ts index b02353b9..aa94e3de 100644 --- a/website/agb/src/sluggify.ts +++ b/website/agb/src/sluggify.ts @@ -1,3 +1,7 @@ export function slugify(x: string) { - return x.toLowerCase().split(" ").join("-"); + return x + .toLowerCase() + .split(" ") + .join("-") + .replace(/[^a-zA-Z0-9\-]/, ""); }