diff --git a/src/explore-education-statistics-frontend/src/middleware/pages/__tests__/redirectPages.test.ts b/src/explore-education-statistics-frontend/src/middleware/pages/__tests__/redirectPages.test.ts index 328a848ce0b..772cc444b81 100644 --- a/src/explore-education-statistics-frontend/src/middleware/pages/__tests__/redirectPages.test.ts +++ b/src/explore-education-statistics-frontend/src/middleware/pages/__tests__/redirectPages.test.ts @@ -15,11 +15,11 @@ describe('redirectPages', () => { const nextSpy = jest.spyOn(NextResponse, 'next'); const testRedirects: Redirects = { - methodologies: [ + methodologyRedirects: [ { fromSlug: 'original-slug-1', toSlug: 'updated-slug-1' }, { fromSlug: 'original-slug-2', toSlug: 'updated-slug-2' }, ], - publications: [ + publicationRedirects: [ { fromSlug: 'original-slug-3', toSlug: 'updated-slug-3' }, { fromSlug: 'original-slug-4', toSlug: 'updated-slug-4' }, ], diff --git a/src/explore-education-statistics-frontend/src/middleware/pages/redirectPages.ts b/src/explore-education-statistics-frontend/src/middleware/pages/redirectPages.ts index e9c4e07bbbd..ea5e6a09509 100644 --- a/src/explore-education-statistics-frontend/src/middleware/pages/redirectPages.ts +++ b/src/explore-education-statistics-frontend/src/middleware/pages/redirectPages.ts @@ -15,8 +15,8 @@ const cacheTime = getCacheTime(); let cachedRedirects: CachedRedirects | undefined; const redirectPaths = { - methodologies: '/methodology', - publications: '/find-statistics', + methodologyRedirects: '/methodology', + publicationRedirects: '/find-statistics', }; export default async function redirectPages( diff --git a/src/explore-education-statistics-frontend/src/services/redirectService.ts b/src/explore-education-statistics-frontend/src/services/redirectService.ts index 4daf2724edb..f90347cc773 100644 --- a/src/explore-education-statistics-frontend/src/services/redirectService.ts +++ b/src/explore-education-statistics-frontend/src/services/redirectService.ts @@ -1,6 +1,6 @@ export interface Redirects { - methodologies: Redirect[]; - publications: Redirect[]; + methodologyRedirects: Redirect[]; + publicationRedirects: Redirect[]; } export type RedirectType = keyof Redirects;