This commit is contained in:
parent
19fa265166
commit
f421716f5c
@ -9,7 +9,10 @@ export function middleware(request: NextRequest) {
|
|||||||
if (pathname == "/") {
|
if (pathname == "/") {
|
||||||
if (playerIdCookie) {
|
if (playerIdCookie) {
|
||||||
return NextResponse.redirect(
|
return NextResponse.redirect(
|
||||||
new URL(`/player/${playerIdCookie.value}`, request.url),
|
new URL(
|
||||||
|
`/player/${playerIdCookie.value}/scoresaber/top/1`,
|
||||||
|
request.url,
|
||||||
|
),
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return NextResponse.redirect(new URL("/search", request.url));
|
return NextResponse.redirect(new URL("/search", request.url));
|
||||||
|
Loading…
Reference in New Issue
Block a user