update game url to use game code directly
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
export default function NotFound() {
|
||||
return (
|
||||
<div className="flex flex-col items-center justify-center gap-4">
|
||||
<div className="text-2xl font-bold">Error</div>
|
||||
<div className="text-xl">Game not found</div>
|
||||
<div className="text-2xl font-bold">Error 404</div>
|
||||
<div className="text-xl">Not found</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -20,7 +20,7 @@ export async function generateMetadata({ params }: { params: { code: string } })
|
||||
openGraph: {
|
||||
title: "chessu",
|
||||
description: `Play or watch a game with ${game.host?.name}`,
|
||||
url: `https://ches.su/game/${game.code}`,
|
||||
url: `https://ches.su/${game.code}`,
|
||||
siteName: "chessu",
|
||||
locale: "en_US",
|
||||
type: "website"
|
||||
@@ -1,5 +0,0 @@
|
||||
import { redirect } from "next/navigation";
|
||||
|
||||
export default function GameEmpty() {
|
||||
redirect("/");
|
||||
}
|
||||
Reference in New Issue
Block a user