Skip to content
Snippets Groups Projects
Unverified Commit 975f3df3 authored by Mael Gaonach's avatar Mael Gaonach
Browse files

allow both routes to a doi

parent 3c8ff717
Branches 113-update-route-for-doi
No related tags found
1 merge request!124Resolve "update route for doi"
Pipeline #200652 passed
......@@ -3,16 +3,17 @@ import { LandingPage } from 'landingPage/LandingPage';
import type { RouteObject } from 'react-router-dom';
import { PageNotFound } from 'routing/PageNotFound';
const DOI_ROUTE = {
path: `:${DOI_PREFIX_PARAM}/:${DOI_SUFFIX_PARAM}`,
element: <LandingPage />,
};
export const routes: RouteObject[] = [
{
path: 'doi',
children: [
{
path: `:${DOI_PREFIX_PARAM}/:${DOI_SUFFIX_PARAM}`,
element: <LandingPage />,
},
],
children: [DOI_ROUTE],
},
DOI_ROUTE,
{
path: '*',
element: <PageNotFound />,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment