-
Notifications
You must be signed in to change notification settings - Fork 3
Redirect /about
to /resources
#1774
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
base: develop
Are you sure you want to change the base?
Conversation
|
const aboutRedirect = customWrapRoute({ | ||
parent: rootLayout, | ||
path: '/about', | ||
component: { | ||
render: () => import('#views/Resources'), | ||
props: {}, | ||
}, | ||
wrapperComponent: Auth, | ||
context: { | ||
title: 'Resources', | ||
visibility: 'anything', | ||
}, | ||
}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not render Resources page directly, we should use Navigate
component to route to the resources page.
For example, https://github.com/IFRCGo/go-web-app/blob/6d755498fa096679ebd817fdb1efe9d7e94a2398/app/src/App/routes/index.tsx#L1178C1-L1193C4
Addresses
Changes
/about
to/resources
This PR Ensures:
console.log
statements meant for debugging