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 <noreply@paperclip.ing>
This commit is contained in:
Ho Ngoc Hai
2026-04-21 12:50:15 +07:00
parent 846ea652d8
commit 53580d444b

View File

@@ -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'];