Fix login return routes and recovery feedback
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 6m29s
All checks were successful
Deploy MineGeo to Dokploy / deploy (push) Successful in 6m29s
This commit is contained in:
@@ -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 ? (
|
||||
|
||||
Reference in New Issue
Block a user