1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

fixing localisation caching error

This commit is contained in:
Patrik J. Braun 2018-01-15 21:35:38 -05:00
parent 9e967c69cd
commit 5a1c7030df

View File

@ -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);
};
};