[Bug]: Browser back button not working properly when navigating from /learn to main page
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
Hi there,
I noticed this issue is currently unassigned and labeled as bug: unconfirmed.
I'd like to pick this up and investigate it. I will start by attempting to reproduce the issue locally and then will look into the Next.js client-side routing logic in the learning section to see why the browser history isn't updating correctly.
Please let me know if I can self-assign. Thanks!
Hi @JatinMehta007, thanks for offering to take this up! 🙌
Yes, please go ahead and self-assign. Reproducing and digging into the Next.js routing/history behavior in the /learn section sounds like the right starting point. Let us know what you find, and feel free to share any questions or blockers here.
Hi @DipakHalkude,
Thank you very much for your report. Could you provide me the name of top-10 foods in Australia?
Hi @JatinMehta007, I’d like to also work on this issue. Please let me know if it’s okay for me to raise a PR if I find a fix.
Hi @poteto Can you just verify the bug. It is in unconfirmed state. Just confirm it :)