[Bug]: Browser back button not working properly when navigating from /learn to main page

Aperta
#8,021 5 commenti 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript, next.js
Ambito
frontend, web-dev

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.

Descrizione

bug: unconfirmed
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:

  1. Go to http://localhost:3000/learn
  2. Click on "Quick Start" (or any other learning section)
  3. Click the browser's back button
  4. Expected: Should return to http://localhost:3000/
  5. 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
Lingua principale
JavaScript
Stelle
11.8k
Fork
7.9k
Merge medio
16h 6m
PR unite (30g)
7

Guida per i contributori

Apri la guida per i contributori

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 reactjs/react.dev

Tutte le issue di reactjs/react.dev

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.