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

Editing the name of a specimen pollutes the browser URL history

Aperta
#482 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Start at the Gallery specimen name input and trace how edits update the browser URL history. The issue suggests pushing a URL only when editing is complete, perhaps when the input loses focus, but leaves the exact behavior open. Verify that typing a name creates a single useful history entry rather than one per keystroke, and that browser navigation still reaches previous specimens.

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

Descrizione

question ui

To reproduce, go to the Gallery and select (say) the "Thue Trellis" specimen. Then click to the right of the name "Thue Trellis" in the specimen bar at the top. Then backspace seven times to erase "Trellis" and type "Fractal". Indeed, the name of the specimen is now "Thue Fractal". However, if you now right-click on the back button (or whatever you do in the browser of choice) to display the URL history of that browser window, you will see there are 14 URLs, identical except for the names "Thue Trelli", "Thue Trell", ..., "Thue Fracta", "Thue Fractal". This is excessive, and makes navigation to actual previous specimens cumbersome.

My recommendation is that a new URL should be pushed only when "input is complete" -- perhaps we can detect that by the input bar for the name losing focus? Anyone have suggestions on exactly how to do this?

Lingua principale
TypeScript
Stelle
10
Fork
18
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

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 numberscope/frontscope

Tutte le issue di numberscope/frontscope

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.