fix sidebar menu redirect in production
Build & Deploy / Build & Push Docker Image (push) Successful in 3m15s
Test / Type Check (all packages) (push) Successful in 55s
Build & Deploy / Deploy to VPS (push) Successful in 4s
Test / API Unit Tests (push) Successful in 47s
Test / Homepage Unit Tests (push) Successful in 42s
Test / Carplace Unit Tests (push) Successful in 44s
Test / Admin Unit Tests (push) Successful in 42s
Test / Dashboard Unit Tests (push) Successful in 40s
Test / API Integration Tests (push) Successful in 59s

This commit is contained in:
root
2026-07-02 21:43:56 -04:00
parent 511ab4d03b
commit c27f0909df
4 changed files with 18 additions and 5 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ function localJwtMiddleware(req: NextRequest): NextResponse {
if (!token) {
const signInUrl = resolveProxyUrl(req, toPublicDashboardPath('/sign-in'))
signInUrl.searchParams.set('redirect', req.nextUrl.pathname)
signInUrl.searchParams.set('redirect', toPublicDashboardPath(req.nextUrl.pathname))
return NextResponse.redirect(signInUrl)
}
return NextResponse.next()