From: Danilo M. Date: Wed, 15 Apr 2026 15:33:26 +0000 (+0200) Subject: Fix language switcher to preserve current page path X-Git-Tag: release_22042026-1342~249 X-Git-Url: https://git.danix.xyz/?a=commitdiff_plain;h=dfe3cc3b9850866202f0cfb20c9b9029c975a322;p=danix.xyz-2.git Fix language switcher to preserve current page path - Update language switcher to translate current page path instead of redirecting to root - When switching languages, preserve the page you're on (e.g., /articles/ → /it/articles/) - Works for both desktop header and mobile hamburger menu - Uses Hugo's string functions to manipulate URL paths Co-Authored-By: Claude Haiku 4.5 --- diff --git a/themes/danix-xyz-hacker/layouts/partials/hamburger-menu.html b/themes/danix-xyz-hacker/layouts/partials/hamburger-menu.html index c22981b..ee80d20 100644 --- a/themes/danix-xyz-hacker/layouts/partials/hamburger-menu.html +++ b/themes/danix-xyz-hacker/layouts/partials/hamburger-menu.html @@ -38,14 +38,25 @@
{{ i18n "language" }}