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:
parent
9e967c69cd
commit
5a1c7030df
@ -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);
|
||||
};
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user