fix(i18n): redirect based on Referer header (#40512)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
Mrugesh Mohapatra
2020-12-21 22:23:06 +05:30
committed by Mrugesh Mohapatra
parent a3b1b52cdd
commit 77c46dba2c
10 changed files with 162 additions and 78 deletions

View File

@@ -11,10 +11,10 @@ if (process.env.PIPELINE_ENV !== 'true') {
}
const {
HOME_LOCATION: home,
API_LOCATION: api,
FORUM_LOCATION: forum,
NEWS_LOCATION: news,
HOME_LOCATION: homeLocation,
API_LOCATION: apiLocation,
FORUM_LOCATION: forumLocation,
NEWS_LOCATION: newsLocation,
CLIENT_LOCALE: clientLocale,
CURRICULUM_LOCALE: curriculumLocale,
SHOW_LOCALE_DROPDOWN_MENU: showLocaleDropdownMenu,
@@ -27,10 +27,10 @@ const {
} = process.env;
const locations = {
homeLocation: home,
apiLocation: api,
forumLocation: forum,
newsLocation: news
homeLocation,
apiLocation,
forumLocation,
newsLocation
};
module.exports = Object.assign(locations, {