From dc8e452a58f1a2a5e8dd05a14ffe9a5ee5e2d136 Mon Sep 17 00:00:00 2001 From: Christel Westerberg Date: Mon, 10 Jun 2024 13:30:22 +0200 Subject: [PATCH] fix: rewrite eng myPages and rename urls for my pages urls --- constants/routes/myPages.js | 8 ++++---- next.config.js | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/constants/routes/myPages.js b/constants/routes/myPages.js index b83d8ba18..f942d96af 100644 --- a/constants/routes/myPages.js +++ b/constants/routes/myPages.js @@ -51,11 +51,11 @@ export const profileEdit = { /** @type {import('@/types/routes').LangRoute} */ export const points = { da: `${myPages.da}/points`, - de: `${myPages.de}/points`, + de: `${myPages.de}/punkte`, en: `${myPages.en}/points`, - fi: `${myPages.fi}/points`, - no: `${myPages.no}/points`, - sv: `${myPages.sv}/points`, + fi: `${myPages.fi}/pisteet`, + no: `${myPages.no}/poeng`, + sv: `${myPages.sv}/poang`, } /** @type {import('@/types/routes').LangRoute} */ diff --git a/next.config.js b/next.config.js index 9b1a54f56..596262ef9 100644 --- a/next.config.js +++ b/next.config.js @@ -60,7 +60,10 @@ const nextConfig = { { source: login.fi, destination: "/fi/login" }, { source: login.no, destination: "/no/login" }, { source: login.sv, destination: "/sv/login" }, - + { + source: `${myPages.en}/:path*`, + destination: `/en/my-pages/:path*`, + }, { source: `${myPages.da}/:path*`, destination: `/da/my-pages/:path*`,