From e71a0f9097ab40047ccef3369fbd7d15aa1e4992 Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Wed, 15 May 2024 11:37:18 +0100 Subject: [PATCH] fix: temporary redirect for Bucks building control service (#3147) --- editor.planx.uk/src/routes/index.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/editor.planx.uk/src/routes/index.tsx b/editor.planx.uk/src/routes/index.tsx index 1f15826a56..df205af886 100644 --- a/editor.planx.uk/src/routes/index.tsx +++ b/editor.planx.uk/src/routes/index.tsx @@ -71,6 +71,12 @@ export default isPreviewOnlyDomain }) : mount({ "/:team/:flow/published": lazy(() => import("./published")), // loads current published flow if exists, or throws Not Found if unpublished + "buckinghamshire/apply-for-building-regulations-applications/preview": + map(async (req) => + redirect( + `/buckinghamshire/apply-for-building-regulations-applications/published${req?.search}`, + ), + ), // temporary redirect while Bucks works with internal IT to update advertised service links "/:team/:flow/preview": lazy(() => import("./preview")), // loads current draft flow and latest published external portals, or throws Not Found if any external portal is unpublished "/:team/:flow/draft": lazy(() => import("./draft")), // loads current draft flow and draft external portals "/:team/:flow/pay": mountPayRoutes(),