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