Skip to content

Commit

Permalink
Add redirect from /2020-ndc-tracker to /ndc-tracker
Browse files Browse the repository at this point in the history
  • Loading branch information
SARodrigues committed Nov 20, 2024
1 parent e5d8162 commit 23c790f
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions app/javascript/app/routes/app-routes/app-routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import NDCCountry from 'pages/ndc-country';
import LTSCountry from 'pages/lts-country';
import NDCCompare from 'pages/ndc-compare';
import NDCCompareAll from 'pages/ndc-compare-all-targets';
import NDCSEnhancements from 'pages/ndcs-enhancements';
// import NDCSEnhancements from 'pages/ndcs-enhancements';
import NDCSEnhancements2025 from 'pages/ndcs-enhancements-2025';
import NDCSDG from 'pages/ndc-sdg';
import Country from 'pages/country';
Expand Down Expand Up @@ -58,7 +58,7 @@ import emissionPathwaysScenarioSections from './emission-pathways-scenario-secti
import emissionPathwaysSections from './emission-pathways-sections';
import countryCompareSections from './country-compare-sections';
import agricultureSections from './sectors-agriculture-sections';
import ndcsEnhancementsSections from './ndcs-enhancements-sections';
// import ndcsEnhancementsSections from './ndcs-enhancements-sections';
import ndcsEnhancements2025Sections from './ndcs-enhancements-2025-sections';
import LTSExploreSections from './lts-explore-sections';
import NetZeroSections from './net-zero-sections';
Expand Down Expand Up @@ -176,13 +176,13 @@ export default [
headerGradient: HEADER_GRADIENTS.commitments,
headerColor: HEADER_COLORS.ndc
},
{
path: '/2020-ndc-tracker',
component: NDCSEnhancements,
headerImage: 'ndc',
sections: ndcsEnhancementsSections,
headerGradient: HEADER_GRADIENTS.commitments
},
// {
// path: '/2020-ndc-tracker',
// component: NDCSEnhancements,
// headerImage: 'ndc',
// sections: ndcsEnhancementsSections,
// headerGradient: HEADER_GRADIENTS.commitments
// },
{
path: '/ndc-tracker',
component: NDCSEnhancements2025,
Expand Down Expand Up @@ -313,6 +313,10 @@ export default [
path: '/lts-tracker',
component: () => createElement(Redirect, { to: '/lts-explore' })
},
{
path: '/2020-ndc-tracker',
component: () => createElement(Redirect, { to: '/ndc-tracker' })
},
{
path: '/',
component: () => createElement(Redirect, { to: '/error-page' })
Expand Down

0 comments on commit 23c790f

Please sign in to comment.