From ec668fbdf85fb8e39799d44be83d231604175c2c Mon Sep 17 00:00:00 2001 From: Jessica McInchak Date: Wed, 15 May 2024 11:58:11 +0200 Subject: [PATCH] temporary redirect for one bucks service --- 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(),