]> danix's work - danix.xyz-2.git/commit
Fix language switcher to preserve current page path
authorDanilo M. <redacted>
Wed, 15 Apr 2026 15:33:26 +0000 (17:33 +0200)
committerDanilo M. <redacted>
Wed, 15 Apr 2026 15:33:26 +0000 (17:33 +0200)
commitdfe3cc3b9850866202f0cfb20c9b9029c975a322
treee31e41022a5ed9cda27bad2881f74ad7a61c285a
parentd6455752935d0beb710df9e428837a09d4c8fdc1
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 <redacted>
themes/danix-xyz-hacker/layouts/partials/hamburger-menu.html
themes/danix-xyz-hacker/layouts/partials/header.html