diff --git a/website/agb/src/app/showcase/page.tsx b/website/agb/src/app/showcase/page.tsx index 2b33411c..6817b8f5 100644 --- a/website/agb/src/app/showcase/page.tsx +++ b/website/agb/src/app/showcase/page.tsx @@ -8,7 +8,7 @@ export const metadata: Metadata = { title: "Showcase - agb", }; -export default function ColourPickerPage() { +export default function ShowcasePage() { return ( <> diff --git a/website/agb/src/app/tapir/dpl/page.tsx b/website/agb/src/app/tapir/dpl/page.tsx new file mode 100644 index 00000000..9109487e --- /dev/null +++ b/website/agb/src/app/tapir/dpl/page.tsx @@ -0,0 +1,29 @@ +import { ContentBlock } from "@/components/contentBlock"; +import { Metadata } from "next"; +import { redirect } from "next/navigation"; + +export const metadata: Metadata = { + title: "Dungeon Puzzler Redirect", +}; + +const REDIRECT_TO = "/showcase/the-dungeon-puzzlers-lament"; + +export default function DplRedirectPage() { + redirect(REDIRECT_TO); + + return ( + <> + +

This page is a redirect to the Dungeon Puzzler

+
+ +

+ You should be redirected automatically.{" "} + + If you were not redirected automatically click here. + +

+
+ + ); +} 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\-]/, ""); }