Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add redirection for about to resource page #1707

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add redirection for about to resource page
roshni73 committed Feb 25, 2025
commit 32761a3ac75d6d2cf4d8a5022b715333a1d33a07
16 changes: 16 additions & 0 deletions app/src/App/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -741,6 +741,7 @@ const resources = customWrapRoute({
visibility: 'anything',
},
});

const operationalLearning = customWrapRoute({
parent: rootLayout,
path: 'operational-learning',
@@ -1174,6 +1175,20 @@ const perWorkPlanForm = customWrapRoute({
},
});

const aboutRedirect = customWrapRoute({
parent: rootLayout,
path: '/about',
component: {
render: () => import('#views/Resources'),
props: {},
},
wrapperComponent: Auth,
context: {
title: 'Resource',
visibility: 'anything',
},
});

// Redirect Routes
const preparednessOperationalLearning = customWrapRoute({
parent: preparednessLayout,
@@ -1306,6 +1321,7 @@ const wrappedRoutes = {
threeWProjectDetail,
termsAndConditions,
operationalLearning,
aboutRedirect,
...regionRoutes,
...countryRoutes,
...surgeRoutes,