Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
doi-landing-page
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ICAT
doi-landing-page
Commits
975f3df3
Unverified
Commit
975f3df3
authored
5 months ago
by
Mael Gaonach
Browse files
Options
Downloads
Patches
Plain Diff
allow both routes to a doi
parent
3c8ff717
Branches
113-update-route-for-doi
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!124
Resolve "update route for doi"
Pipeline
#200652
passed
5 months ago
Stage: validate
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
apps/doi-landing-page/src/routes.tsx
+7
-6
7 additions, 6 deletions
apps/doi-landing-page/src/routes.tsx
with
7 additions
and
6 deletions
apps/doi-landing-page/src/routes.tsx
+
7
−
6
View file @
975f3df3
...
...
@@ -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
/>,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment