website icon indicating copy to clipboard operation
website copied to clipboard

Bug: The search bar does not work properly

Open BamaCharanChhandogi opened this issue 1 year ago • 3 comments

Description of the bug

Description of the bug When I click the back button search result shows repeated in below.

How to reproduce Write anything on the search bar and click the back button, You will notice.

Add screenshots of the bug (if applicable)

https://github.com/TheAlgorithms/website/assets/69814563/d2729fd2-89ac-42eb-a1be-e0dd964462f5

Additional information/context

No response

BamaCharanChhandogi avatar Aug 05 '23 12:08 BamaCharanChhandogi

Ok Understood the issue. Could you explain how the expected solution should work?

  • You want to redirect to the home page?
  • stay at search page and clear search bar input?
  • or anything else ?

anshvert avatar Oct 01 '23 12:10 anshvert

Ok Understood the issue. Could you explain how the expected solution should work?

  • You want to redirect to the home page?
  • stay at search page and clear search bar input?
  • or anything else ?

Great catch, thank you! 🚀 I believe it should go back to the last page before the search page was accessed.

Panquesito7 avatar Jan 16 '24 03:01 Panquesito7

I think the issue is not clear enough, as many people have misunderstood it. The issue should be named "Prevent search parameters from being pushed to browsing history", with description explaining that pressing the browser back button should take us to the previous page, instead of the previous search result..

ahmed0saber avatar Apr 28 '24 13:04 ahmed0saber