Skip to content

Commit cbbe35f

Browse files
Update index.js
1 parent f26745d commit cbbe35f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ const Home = (props) => {
8888
>
8989
<div>
9090
{locales.map((all_languages, index) => (
91-
<Link href={`${process.env.URLprefix}${locales[index].short}`.replace(/\/(.*?)\/(.*?)/, '/$2').replace(locale?.['short'], '')}>
91+
<Link href={`${process.env.URLprefix}${locales[index].short}`.replace(/\/(.*?)\/(.*?)/, '/$2').replace(locale?.['short'], '').replace('/coder', '/encoder')}>
9292
<Fragment key={index}>
93-
<Link href={`${process.env.URLprefix}${locales[index].short}`.replace(/\/(.*?)\/(.*?)/, '/$2').replace(locale?.['short'], '')}>
93+
<Link href={`${process.env.URLprefix}${locales[index].short}`.replace(/\/(.*?)\/(.*?)/, '/$2').replace(locale?.['short'], '').replace('/coder', '/encoder')}>
9494
<div className="home-language-switcher-item">
9595
<span className="home-language-link">
9696
{all_languages?.name}

0 commit comments

Comments
 (0)