Skip to content

Commit d888f4d

Browse files
committed
Fix unsubscribe link
1 parent 4bd0d4a commit d888f4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/dashboard/src/middleware.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export async function middleware(request: NextRequest) {
3131
if (
3232
!data?.user &&
3333
newUrl.pathname !== "/" &&
34-
!newUrl.pathname.includes("/report")
34+
!newUrl.pathname.includes("/report") &&
35+
!newUrl.pathname.includes("/unsubscribe")
3536
) {
3637
const encodedSearchParams = `${newUrl.pathname.substring(1)}${
3738
newUrl.search

0 commit comments

Comments
 (0)