GNOME-Nepal / website

Welcome to the official website of GNOME Nepal, crafted through the open-source contributions of our dedicated and talented developers.
https://nepal.gnome.org
MIT License
7 stars 4 forks source link

🐛 Bug report: Redirection Bug #24

Open sarojregmi200 opened 3 weeks ago

sarojregmi200 commented 3 weeks ago

Describe the bug Go to the landing page of Gnome Nepal scroll twice or thrice to the top and the bottom of the page. Now you cannot go back in your history outside the gnome site.

To Reproduce Steps to reproduce the behavior:

  1. Go to the landing page of Gnome Nepal
  2. scroll twice or thrice to the top and the bottom of the page.
  3. Now try to go back in history to the search or home page of your browser in the same tab by clicking the back button alongside the url bar.
  4. See the error.

Expected behavior Users should be able to exit the site immediately if they have not visited any other routes in the site.

Desktop (please complete the following information):

Additional context Here is a video showing the problem.

https://github.com/user-attachments/assets/94b39516-031c-41ce-a6cb-f9123063044c

sarojregmi200 commented 3 weeks ago

It is also the same if you click the links in the top navigation. It is because the react router is pushing every url change to the state and can be easily solve by setting the replace property to true while updating the route.

utsavdotdev commented 3 weeks ago

Thank you, @sarojregmi, for reporting this bug. It's a great good first issue for anyone new to GitHub, making it an excellent opportunity for beginners to contribute. Could you please also mention this issue on Discord?

sarojregmi200 commented 3 weeks ago

Ok.