Add map-specific tournament creation link
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 3m31s
Some checks failed
Deploy MineGeo to Dokploy / deploy (push) Failing after 3m31s
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user