From 31fd89dd7dc50ab52b8043b9056a1963296116b0 Mon Sep 17 00:00:00 2001 From: Fabian Engelniederhammer Date: Tue, 19 Nov 2024 12:13:34 +0100 Subject: [PATCH] fixup! feat(website,kubernetes): make it possible to disable login and submit flow on website --- website/src/middleware.ts | 2 +- website/src/pages/organism-selector/[redirectTo].astro | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/middleware.ts b/website/src/middleware.ts index 03b55b294..147a8d85f 100644 --- a/website/src/middleware.ts +++ b/website/src/middleware.ts @@ -1,9 +1,9 @@ import { sequence } from 'astro:middleware'; +import { getWebsiteConfig } from './config.ts'; import { authMiddleware } from './middleware/authMiddleware.ts'; import { catchErrorMiddleware } from './middleware/catchErrorMiddleware.ts'; import { organismValidatorMiddleware } from './middleware/organismValidatorMiddleware.ts'; -import { getWebsiteConfig } from './config.ts'; import { submissionPagesDisablingMiddleware } from './middleware/submissionPagesDisablingMiddleware.ts'; const middlewares = [catchErrorMiddleware, organismValidatorMiddleware, authMiddleware]; diff --git a/website/src/pages/organism-selector/[redirectTo].astro b/website/src/pages/organism-selector/[redirectTo].astro index 119aa9325..5aa7dfbf7 100644 --- a/website/src/pages/organism-selector/[redirectTo].astro +++ b/website/src/pages/organism-selector/[redirectTo].astro @@ -28,7 +28,7 @@ const myRoutes = { submission: routes.submissionPageWithoutGroup, search: routes.searchPage, }; -const purpose = purposes[redirectTo as keyof typeof purposes]; +const purpose = purposes[redirectTo]; // Prevent caching to allow back button after user creates group Astro.response.headers.append('Cache-Control', 'no-cache, no-store, must-revalidate');