[Bug]: Browser back button not working properly when navigating from /learn to main page
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 11.8k
- Fork
- 7.9k
- Merge medio
- 1g 11h
- PR unite (30g)
- 11
Descrizione
Summary
Problem: When navigating from http://localhost:3000/learn to a specific learning page (like Quick Start), clicking the browser's back button does not return to the main page at http://localhost:3000/ .
Steps to Reproduce:
- Go to http://localhost:3000/learn
- Click on "Quick Start" (or any other learning section)
- Click the browser's back button
- Expected: Should return to http://localhost:3000/
- Actual: Does not navigate back to main page
Browser: Chrome
Page
http://localhost:3000/learn
Details
Additional Context: This appears to be a navigation history issue where the browser's back button functionality is not working as expected when moving between the main page and learning sections. The issue might be related to how Next.js handles client-side routing in the learning section.
Possible Related Issues:
- Similar to the fragment link back button issue that was recently fixed
- May involve scroll restoration or navigation state management
Guida per i contributori
Apri la guida per i contributori
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.
Direzione di ricerca
Inizia riproducendo in Chrome il flusso da /learn a Quick Start e poi di nuovo alla pagina principale. Quindi esamina il routing lato client con Next.js della sezione di apprendimento e confrontalo con la navigazione dei link ai frammenti corretta di recente. Il lavoro è completato quando il pulsante Indietro del browser torna da una pagina di apprendimento a http://localhost:3000/ come previsto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, next.js
- Ambito
- frontend, web-dev
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 42/100