Skip to content

Commit

Permalink
fix: add missing page not found handler for pages under profile-path
Browse files Browse the repository at this point in the history
KK-1111
  • Loading branch information
nikomakela committed Mar 26, 2024
1 parent dc3ffce commit 950c669
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/domain/app/routes/browserRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import EnrolPage from '../../event/enrol/EnrolPage';
import CookieConsentPage from '../../cookieConsent/CookieConsentPage';
import Unauthorized from '../../auth/Unauthorized';
import ManageMarketingSubscriptions from '../../profile/subscriptions/ManageSubscriptions';
import NotFound from '../notFound/NotFound';

const browserRouter = createBrowserRouter([
{ path: '/', Component: NavigateToLocalePath },
Expand Down Expand Up @@ -195,6 +196,10 @@ const browserRouter = createBrowserRouter([
},
],
},
{
path: '*',
Component: NotFound,
},
],
},
// All the rest of the localised routes should be handled as CMS pages
Expand Down

0 comments on commit 950c669

Please sign in to comment.