Files
leopost/middleware.ts
Michele 44fcd37366 Fix middleware redirect URLs missing basePath
- Use request.nextUrl.clone() instead of new URL() for redirects
- This preserves the /leopost basePath in redirect URLs
- Fixes 404 error when unauthenticated user visits /dashboard

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-01 12:02:01 +01:00

1.7 KiB