diff options
Diffstat (limited to 'src/app/create/page.tsx')
| -rw-r--r-- | src/app/create/page.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
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> |
