From 53580d444b64a9b4ea303d07e5c770d971fde8f8 Mon Sep 17 00:00:00 2001 From: Ho Ngoc Hai Date: Tue, 21 Apr 2026 12:50:15 +0700 Subject: [PATCH] fix(web): add /listings to middleware publicPaths (TEC-3090) Unauthenticated requests to /listings were being 302-redirected to /login because '/listings' was missing from the publicPaths allowlist. /listings is the public marketplace board and must be accessible without auth. Unblocks 5 Playwright DataTable specs + smoke test (TEC-3040). Co-Authored-By: Paperclip --- apps/web/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/middleware.ts b/apps/web/middleware.ts index e3c473c..400a6e3 100644 --- a/apps/web/middleware.ts +++ b/apps/web/middleware.ts @@ -4,7 +4,7 @@ import { routing } from '@/i18n/routing'; const intlMiddleware = createIntlMiddleware(routing); -const publicPaths = ['/login', '/register', '/search', '/auth/callback']; +const publicPaths = ['/login', '/register', '/search', '/listings', '/auth/callback']; const publicExactPaths = ['/']; const authOnlyPaths = ['/login', '/register'];