From 93acfb7cfc6ebae9980b38d5403fac2307718df5 Mon Sep 17 00:00:00 2001 From: Markus Thielker Date: Mon, 2 Dec 2024 17:45:40 +0100 Subject: [PATCH 1/2] NORY-9: exclude service-worker from middleware --- authentication/src/middleware.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/authentication/src/middleware.ts b/authentication/src/middleware.ts index d7cd027..c4c06ed 100644 --- a/authentication/src/middleware.ts +++ b/authentication/src/middleware.ts @@ -41,5 +41,5 @@ export async function middleware(request: NextRequest) { } export const config = { - matcher: '/((?!api|_next/static|_next/image|favicon.png|sitemap.xml|robots.txt).*)', + matcher: '/((?!api|_next/static|_next/image|favicon.png|sitemap.xml|robots.txt|sw.js).*)', }; From 7300b37f7342f01c59072b10f36c3ef4b000a940 Mon Sep 17 00:00:00 2001 From: Markus Thielker Date: Mon, 2 Dec 2024 17:50:23 +0100 Subject: [PATCH 2/2] NORY-9: include return_to value in links --- authentication/src/app/flow/login/page.tsx | 15 ++++++++++----- authentication/src/app/flow/recovery/page.tsx | 5 ++++- authentication/src/app/flow/registration/page.tsx | 5 ++++- authentication/src/app/flow/verification/page.tsx | 5 ++++- 4 files changed, 22 insertions(+), 8 deletions(-) diff --git a/authentication/src/app/flow/login/page.tsx b/authentication/src/app/flow/login/page.tsx index 6d08e30..8a689d0 100644 --- a/authentication/src/app/flow/login/page.tsx +++ b/authentication/src/app/flow/login/page.tsx @@ -144,9 +144,11 @@ export default function Login() {
{ flow ? - : @@ -155,8 +157,11 @@ export default function Login() { { flow ? : diff --git a/authentication/src/app/flow/recovery/page.tsx b/authentication/src/app/flow/recovery/page.tsx index 7d699be..60ae1f3 100644 --- a/authentication/src/app/flow/recovery/page.tsx +++ b/authentication/src/app/flow/recovery/page.tsx @@ -114,7 +114,10 @@ export default function Recovery() { { flow ? diff --git a/authentication/src/app/flow/registration/page.tsx b/authentication/src/app/flow/registration/page.tsx index 7a26aca..4dd0eb7 100644 --- a/authentication/src/app/flow/registration/page.tsx +++ b/authentication/src/app/flow/registration/page.tsx @@ -121,7 +121,10 @@ export default function Registration() { { flow ? diff --git a/authentication/src/app/flow/verification/page.tsx b/authentication/src/app/flow/verification/page.tsx index ac18b79..365413e 100644 --- a/authentication/src/app/flow/verification/page.tsx +++ b/authentication/src/app/flow/verification/page.tsx @@ -113,7 +113,10 @@ export default function Verification() { { flow ?