From 7179877c828190f15310ed0bf30f53340e6f62ac Mon Sep 17 00:00:00 2001 From: fiona-deriv Date: Tue, 28 Dec 2021 13:51:41 +0200 Subject: [PATCH] fix SEO 404 errors --- src/components/localization/localized-link.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/components/localization/localized-link.js b/src/components/localization/localized-link.js index d5dea8615b1..2fb3063e759 100644 --- a/src/components/localization/localized-link.js +++ b/src/components/localization/localized-link.js @@ -7,12 +7,7 @@ import { LocationContext } from '../layout/location-context.js' import language_config from '../../../i18n-config' import { LocaleContext } from './locale-context' import { localized_link_url } from 'common/constants' -import { - getLocalizedUrl, - getDerivAppLocalizedURL, - getThaiExcludedLocale, - replaceLocale, -} from 'common/utility' +import { getLocalizedUrl, getDerivAppLocalizedURL, getThaiExcludedLocale } from 'common/utility' import { DerivStore } from 'store' export const SharedLinkStyle = css` @@ -188,7 +183,7 @@ const ExternalLink = ({ const { is_eu_country } = useContext(DerivStore) const { setModalPayload, toggleModal } = useContext(LocationContext) const { affiliate_lang } = language_config[locale] - const url = getURLFormat(type, replaceLocale(locale), to, affiliate_lang) + const url = getURLFormat(type, locale, to, affiliate_lang) const show_modal = is_eu_country && !is_mail_link &&