fix: various bugs

This commit is contained in:
swve 2024-08-29 20:12:15 +02:00
parent 2c61542eb7
commit 8b1332c840
4 changed files with 49 additions and 73 deletions

View file

@ -37,7 +37,7 @@ export default async function middleware(req: NextRequest) {
// Out of orgslug paths & rewrite
const standard_paths = ['/home']
const auth_paths = ['/login', '/signup', '/reset']
const auth_paths = ['/login', '/signup', '/reset', '/forgot']
if (standard_paths.includes(pathname)) {
// Redirect to the same pathname with the original search params
return NextResponse.rewrite(new URL(`${pathname}${search}`, req.url))