404 page is always served in French, even under /en/, /es/ and /es-ct/
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
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
- 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.
- A multilingual 404 with no script: the same page shows the four languages with one button per language. Simple and robust, less elegant.
- 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
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pyronear/website
-
page: global type: enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Give more weight to our open approach (open source, open data, open models, open hardware, legal framework)Forse già presa @fe51 l’ha presa 7 giorni fa. Apertapage: how-it-works type: enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
page: about type: enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
-
page: deployments type: enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
page: deployments type: enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
Tutte le issue di pyronear/website
Issue simili
-
Replace discontinued crypto-js in the themeForse già presa @aelmanaa l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
PaloAltoNetworks/docusaurus-openapi-docs#1689 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
gramps-project/gramps-web#1604 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement good first issue hacktoberfest help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
BinaryBaconLabs/todo-app#18 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
Automattic/data-liberation-agent#1115 ·
I maintainer di solito rispondono entro 1 giorno
-
status:needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100