mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
fix: various bugs
This commit is contained in:
parent
2c61542eb7
commit
8b1332c840
4 changed files with 49 additions and 73 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue