Tab title doesn't update to <Head> <title> when navigating to a page with another <title>

Aperta
#3,916 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

@1AbdullahButt ci sta già lavorando.

Dal 8/11/2026.

  • #3919 di @1AbdullahButt — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
57/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
deno, typescript
Ambito
frontend, web-dev

Direzione di ricerca

Start by locating how Fresh handles <Head> and updates the document title during client side navigation. Reproduce the reported case with a page whose SVG contains a later <title> element, then compare it with the workaround that moves <Head> to the end of the JSX. Done means the tab title updates to the <Head> title after navigation in either ordering.

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

Descrizione

The tab title doesn't change (at all) when navigating to a page that has <title> if the new page contains another <title> tag.

It only happens if the 2nd <title> tag is further down the DOM tree than .

I noticed this when adding a <title> to an

Workaround:
Moving to the bottom of the page's JSX so the <title> tag is the last one found in the DOM tree.

Lingua principale
TypeScript
Stelle
13.8k
Fork
757
Merge medio
3m
PR unite (30g)
2

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 freshframework/fresh

Tutte le issue di freshframework/fresh

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.