From 41de98083f484b74fa8e55ce37727dd5ad422a99 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Sun, 12 Oct 2025 14:02:47 +0100 Subject: [PATCH] fix: show navigation if slugname include routes to hide nav --- apps/dashboard/src/lib/utils/constants/routes.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/dashboard/src/lib/utils/constants/routes.ts b/apps/dashboard/src/lib/utils/constants/routes.ts index 2a442a0c..5eea7e88 100644 --- a/apps/dashboard/src/lib/utils/constants/routes.ts +++ b/apps/dashboard/src/lib/utils/constants/routes.ts @@ -31,12 +31,12 @@ export const PUBLIC_ROUTES = [ ]; export const ROUTES_TO_HIDE_NAV = [ - ROUTE.LOGIN, - ROUTE.SIGN_UP, + `^${ROUTE.LOGIN}$`, + `^${ROUTE.SIGN_UP}$`, ROUTE.LMS_HOME, `^${ROUTE.INVITE_TEACHER}/.*`, `^${ROUTE.INVITE_STUDENT}/.*`, - ROUTE.FORGOT, - ROUTE.RESET, - ROUTE.ONBOARDING + `^${ROUTE.FORGOT}$`, + `^${ROUTE.RESET}$`, + `^${ROUTE.ONBOARDING}$` ];