Fix login return routes and recovery feedback
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 6m29s

This commit is contained in:
2026-10-31 13:56:01 +05:00
parent 48d4058e06
commit 0d62f08e77
6 changed files with 47 additions and 7 deletions

View File

@@ -157,7 +157,14 @@ export function TournamentIndex({
{t(creating ? "Close" : "Create tournament")}
</button>
) : (
<Link href="/log-in" className="button primary">
<Link
href={`/log-in?next=${encodeURIComponent(
initialMapId
? `/tournaments?map=${initialMapId}`
: "/tournaments",
)}`}
className="button primary"
>
{t("Log in to create or join")}
</Link>
)}
@@ -595,7 +602,10 @@ export function TournamentLobby({
{event.status === "scheduled" && (
<div className="tournament-actions">
{!signedIn ? (
<Link className="button primary" href="/log-in">
<Link
className="button primary"
href={`/log-in?next=${encodeURIComponent(`/tournaments/${id}`)}`}
>
{t("Log in to create or join")}
</Link>
) : joined ? (