Add map-specific tournament creation link
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 3m31s

This commit is contained in:
2026-10-18 13:32:56 +05:00
parent a7085e4e80
commit da1a50a6ad
10 changed files with 74 additions and 9 deletions

View File

@@ -75,6 +75,12 @@ test("authentication redirects accept supported local routes and reject open red
assert.equal(authDestination(next), "/dashboard");
assert.equal(authDestination("/settings"), "/settings");
assert.equal(authDestination("/servers"), "/servers");
const tournamentMap = "/tournaments?map=123e4567-e89b-12d3-a456-426614174000";
assert.equal(authDestination(tournamentMap), tournamentMap);
assert.equal(
authDestination(`${tournamentMap}&next=//evil.example`),
"/dashboard",
);
assert.equal(authDestination("/pair?code=1234ABCD"), "/pair?code=1234ABCD");
assert.equal(authDestination("/auth/reset-password"), "/auth/reset-password");
});