Skip to content

Commit cf2b8c3

Browse files
Update index.js
1 parent d8bc8a7 commit cf2b8c3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pages/docs/index.js

Lines changed: 5 additions & 5 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={`https://encoder.js.is-a.dev/${langcode(index)}/docs`}>
100+
<Link href={`${locales[index].short}/docs`}>
101101
<Fragment key={index}>
102-
<Link href={`https://encoder.js.is-a.dev/${langcode(index)}/docs`}>
102+
<Link href={`${locales[index].short}/docs`}>
103103
<div className="home-language-switcher-item">
104104
<span className="home-language-link">
105105
{all_languages?.name}
@@ -186,7 +186,7 @@ const Home = (props) => {
186186
easing="ease-in-out"
187187
iteration="1"
188188
>
189-
<a href={`/${locale?.['short']}`.toLowerCase().replace('en','')} target="_self">
189+
<Link href={`/${locale?.['short']}`.toLowerCase().replace('en','')} target="_self">
190190
<button
191191
type="button"
192192
data-thq-animate-on-reveal="true"
@@ -199,10 +199,10 @@ const Home = (props) => {
199199
}}
200200
></span>
201201
<span></span>
202-
<span className="home-text7"></span>
202+
<span className="home-text7 removethat"></span>
203203
</span>
204204
</button>
205-
</a>
205+
</Link>
206206
</animate-on-reveal>
207207
</div>
208208
</div>

0 commit comments

Comments
 (0)