Skip to content

Commit eb008fc

Browse files
Update index.js
1 parent 1276506 commit eb008fc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pages/docs/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ const Home = (props) => {
9797
>
9898
<div>
9999
{locales.map((all_languages, index) => (
100-
<Link href={`${process.env.URLprefix}${locales[index].short}/docs`}>
100+
<Link href={`${`${process.env.URLprefix}${locales[index].short}`.replace(/\/(.*?)\/(.*?)/, '/$2')}/docs`}>
101101
<Fragment key={index}>
102-
<Link href={`${process.env.URLprefix}${locales[index].short}/docs`}>
102+
<Link href={`${`${process.env.URLprefix}${locales[index].short}`.replace(/\/(.*?)\/(.*?)/, '/$2')}/docs`}>
103103
<div className="home-language-switcher-item">
104104
<span className="home-language-link">
105105
{all_languages?.name}

0 commit comments

Comments
 (0)