From df9cc71002cbb727058fc51fd39c792440369b3e Mon Sep 17 00:00:00 2001 From: Luke Vella Date: Sat, 17 Feb 2024 14:34:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20redirect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/web/src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/middleware.ts b/apps/web/src/middleware.ts index 0a84e6549..9072ce163 100644 --- a/apps/web/src/middleware.ts +++ b/apps/web/src/middleware.ts @@ -57,7 +57,7 @@ export const middleware = withAuth( nextUrl.pathname.startsWith("/login") || nextUrl.pathname.startsWith("/register") || nextUrl.pathname.startsWith("/auth") || - nextUrl.pathname.startsWith("/p") + nextUrl.pathname.startsWith("/p/") ) ) { // limit which pages guests can access for self-hosted instances