Skip to content

Commit 1276506

Browse files
Update index.js
1 parent 7a71e26 commit 1276506

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}`}>
91+
<Link href={`${process.env.URLprefix}${locales[index].short}`.replace(/\/(.*?)\/(.*?)/, '/$2')}>
9292
<Fragment key={index}>
93-
<Link href={`${process.env.URLprefix}${locales[index].short}`}>
93+
<Link href={`${process.env.URLprefix}${locales[index].short}`.replace(/\/(.*?)\/(.*?)/, '/$2')}>
9494
<div className="home-language-switcher-item">
9595
<span className="home-language-link">
9696
{all_languages?.name}

0 commit comments

Comments
 (0)