diff options
| author | Pinapelz <yukais@pinapelz.com> | 2026-04-16 23:17:49 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2026-04-16 23:17:49 -0700 |
| commit | 62a0fbf896b92e1490d8d2b476ad8a2540fb27b1 (patch) | |
| tree | f3bc6972b9e206d5af378f1dd97529950c5bbc1c /src | |
| parent | 9dd318313325e0d8925e6259db48709886e143c2 (diff) | |
show sharing url when creating player and typing
Diffstat (limited to 'src')
| -rw-r--r-- | src/app/create/page.tsx | 4 | ||||
| -rw-r--r-- | src/app/typing/page.tsx | 2 |
2 files changed, 3 insertions, 3 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> diff --git a/src/app/typing/page.tsx b/src/app/typing/page.tsx index 3037c32..9e238e6 100644 --- a/src/app/typing/page.tsx +++ b/src/app/typing/page.tsx @@ -138,7 +138,7 @@ export default function TypingPage() { <EmptyState>No results found.</EmptyState> ) : ( filtered.map((item) => ( - <Card key={item.code} href={`/game?code=${item.code}`}> + <Card key={item.code} href={`/game?code=${item.code}`} target="_blank" rel="noopener noreferrer"> <ThumbnailWrapper> {item.thumbnail ? ( <Thumbnail src={item.thumbnail} alt={item.title} /> |
