17143 removed pref from myportal page rely on link for lang
This commit is contained in:
@@ -231,14 +231,14 @@ export const getServerSideProps = wrapper.getServerSideProps(
|
||||
const pathWithoutLocale = ctx.resolvedUrl.replace(/^\/(cy|en)/, "");
|
||||
//console.log("==============================", pathWithoutLocale);
|
||||
|
||||
if (preferredLocale !== locale) {
|
||||
return {
|
||||
redirect: {
|
||||
destination: `/${preferredLocale}${pathWithoutLocale}`,
|
||||
permanent: false,
|
||||
},
|
||||
};
|
||||
}
|
||||
// if (preferredLocale !== locale) {
|
||||
// return {
|
||||
// redirect: {
|
||||
// destination: `/${preferredLocale}${pathWithoutLocale}`,
|
||||
// permanent: false,
|
||||
// },
|
||||
// };
|
||||
// }
|
||||
|
||||
const showLoginCheck = Boolean(process.env.SHOWLOGIN);
|
||||
const showReps = Boolean(process.env.SHOWREPRESENTATIONS);
|
||||
|
||||
Reference in New Issue
Block a user