From 5a1c7030df6348e8d56850bc759a9e6561d9ea1a Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Mon, 15 Jan 2018 21:35:38 -0500 Subject: [PATCH] fixing localisation caching error --- backend/routes/PublicRouter.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/routes/PublicRouter.ts b/backend/routes/PublicRouter.ts index a8fac963..351214f5 100644 --- a/backend/routes/PublicRouter.ts +++ b/backend/routes/PublicRouter.ts @@ -34,11 +34,10 @@ export class PublicRouter { const redirectToBase = (locale: string) => { return (req: Request, res: Response) => { - console.log(locale); if (Config.Client.languages.indexOf(locale) !== -1) { res.cookie(CookieNames.lang, locale); } - res.redirect("/"); + res.redirect("/?ln=" + locale); }; };