From 62a0fbf896b92e1490d8d2b476ad8a2540fb27b1 Mon Sep 17 00:00:00 2001
From: Pinapelz <yukais@pinapelz.com>
Date: Thu, 16 Apr 2026 23:17:49 -0700
Subject: show sharing url when creating player and typing

---
 src/app/create/page.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/app/create/page.tsx')

diff --git a/src/app/create/page.tsx b/src/app/create/page.tsx
index dae0a52..a1bb6f9 100644
--- a/src/app/create/page.tsx
+++ b/src/app/create/page.tsx
@@ -103,8 +103,8 @@ export default function CreatePage() {
     }
   };
 
-  const playerPath = mode === "typing" ? "/typing" : "/player";
-  const shareUrl = code ? `${playerPath}?code=${code}` : "";
+  const playerPath = mode === "typing" ? "/game" : "/player";
+  const shareUrl = code ? `${window.location.origin}${playerPath}?code=${code}` : "";
 
   return (
     <Root>
-- 
cgit v1.2.3

