Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 68ffade

Browse files
fiona-derivfiona-deriv
andauthored
fix SEO 404 errors (#2393)
Co-authored-by: fiona-deriv <[email protected]>
1 parent 7196a7e commit 68ffade

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/components/localization/localized-link.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,7 @@ import { LocationContext } from '../layout/location-context.js'
77
import language_config from '../../../i18n-config'
88
import { LocaleContext } from './locale-context'
99
import { localized_link_url } from 'common/constants'
10-
import {
11-
getLocalizedUrl,
12-
getDerivAppLocalizedURL,
13-
getThaiExcludedLocale,
14-
replaceLocale,
15-
} from 'common/utility'
10+
import { getLocalizedUrl, getDerivAppLocalizedURL, getThaiExcludedLocale } from 'common/utility'
1611
import { DerivStore } from 'store'
1712

1813
export const SharedLinkStyle = css`
@@ -188,7 +183,7 @@ const ExternalLink = ({
188183
const { is_eu_country } = useContext(DerivStore)
189184
const { setModalPayload, toggleModal } = useContext(LocationContext)
190185
const { affiliate_lang } = language_config[locale]
191-
const url = getURLFormat(type, replaceLocale(locale), to, affiliate_lang)
186+
const url = getURLFormat(type, locale, to, affiliate_lang)
192187
const show_modal =
193188
is_eu_country &&
194189
!is_mail_link &&

0 commit comments

Comments
 (0)