Skip to content

Commit

Permalink
bugfix(website): fix world poverty statistics (#665)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkue authored Dec 1, 2023
1 parent 8a2d5b9 commit c930f82
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 103 deletions.
24 changes: 0 additions & 24 deletions shared/locales/de/website-poverty-statistics-2023.json

This file was deleted.

24 changes: 0 additions & 24 deletions shared/locales/en/website-poverty-statistics-2023.json

This file was deleted.

This file was deleted.

2 changes: 2 additions & 0 deletions website/src/metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export async function getMetadata(
title,
description,
keywords,
// If VERCEL_URL is detected: https://${process.env.VERCEL_URL} otherwise it falls back to http://localhost:${process.env.PORT || 3000}.
// https://nextjs.org/docs/app/api-reference/functions/generate-metadata
metadataBase: null,
alternates: {
canonical: '/',
Expand Down
3 changes: 3 additions & 0 deletions website/src/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ export const redirectMiddleware = (request: NextRequest) => {
return NextResponse.redirect('https://github.com/orgs/socialincome-san/discussions/categories/monthly-updates');
case '/github':
return NextResponse.redirect('https://github.com/socialincome-san/public');
case '/world-poverty-statistics-2022':
case '/world-poverty-statistics-2023':
return NextResponse.redirect(new URL('/world-poverty-statistics-2024', request.url));
}
};

Expand Down

0 comments on commit c930f82

Please sign in to comment.