]> danix's work - danix.xyz-2.git/commit
fix: use client-side language detection with redirect rules for 404 navigation
authorDanilo M. <redacted>
Fri, 17 Apr 2026 09:54:12 +0000 (11:54 +0200)
committerDanilo M. <redacted>
Fri, 17 Apr 2026 09:54:12 +0000 (11:54 +0200)
commita9ae07aea8ab7d9e9b3440bcb90de2ac8163f55e
treec3a0dde60f6bad8a6272467ab53fd5d9e71072c1
parent1ae60588c0ceb8a3ec0b35f4c2cb45a2116ec89a
fix: use client-side language detection with redirect rules for 404 navigation

Rely on hugo.toml redirect rules to serve correct 404.html and detect language
from window.location.pathname in notFoundNav() Alpine component. Navigation
links now properly route to Italian (/it/*) or English (/*) sections based on
request URL.

Co-Authored-By: Claude Haiku 4.5 <redacted>
hugo.toml
themes/danix-xyz-hacker/assets/js/not-found-page.js
themes/danix-xyz-hacker/layouts/404.html