Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

404 page is always served in French, even under /en/, /es/ and /es-ct/

Aperta
#16 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
hugo
Ambito
frontend

Direzione di ricerca

Read the website’s Hugo multilingual 404 templates and compare the generated /404.html with the language-specific pages. First determine how the site builds and serves its language-prefixed pages, then propose a resolution for the options in the issue, including whether the menu follows the selected language. Done means the issue’s choice is implemented and the 404 experience is consistent with that decision.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

page: global type: enhancement

Part of the epic pyronear/roadmap#27 (New website).

Problem

On an unknown URL under a language prefix (for example /en/does-not-exist), the 404 page is shown in French (text, menu and links). Clicking "EN" then goes to the English home page, which makes it look as if the page is only translated at that point. Reproduced locally and on the deployed site.

Cause

Hugo generates one 404 page per language (/404.html, /en/404.html, ...), but GitHub Pages only serves the root /404.html (French) for every missing URL. The server cannot choose a language.

Options

  1. A small script on the 404 page that reads the language prefix of the URL and shows the matching text and button (and the menu links if we want to be thorough). Cleaner result, but the site would load JS on a page that has none today.
  2. A multilingual 404 with no script: the same page shows the four languages with one button per language. Simple and robust, less elegant.
  3. Leave it as is (rare case, the page already has a back-to-home button).

To decide

Which option, and whether the menu on the 404 page should follow the language too. Minor issue, not urgent.

Lingua principale
HTML
Stelle
0
Fork
0
Merge medio
7g 1h
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pyronear/website

Tutte le issue di pyronear/website

Issue simili

Altre issue su Web Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.