Skip to content

Commit 26a31f1

Browse files
author
Anthony Bailey
committed
Fix unlocalized logo link - use localizeHref for homepage
The logo link was hardcoded to '/' which meant Spanish users on /es/ pages would be taken back to the English homepage when clicking the logo. Now uses localizeHref('/') to properly localize the link, so Spanish users stay in /es/ when clicking the logo. Fixes part of the issues described in #448
1 parent 758c5da commit 26a31f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes/header.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<div class="logo-container">
2929
<div class="compensate-min-space-between" />
3030
<div class="compensate-offset" />
31-
<a href="/" class="logo">
31+
<a href={localizeHref('/')} class="logo">
3232
<Logo animate={logo_animate} {inverted} />
3333
</a>
3434
<div class="min-space-between" />

0 commit comments

Comments
 (0)