amupedia2021 / amupedia-web

Source code of the website.
https://www.amupedia.site/
MIT License
163 stars 177 forks source link

🐞 [BUG] - 🔍 404 Error on Search Bar No Results #540

Closed Nishitbaria closed 1 year ago

Nishitbaria commented 1 year ago

Description

Currently, when performing a search on the blog page or contributors page and no results are found, the system incorrectly displays a pagination component with "1/0" and does not show a ❌ 404 error component. This behavior is not aligned with the expected behavior.

Current behaviour

  1. Perform a search on the blog page or contributors page.
  2. If no results are found, the system displays a pagination component with "1/0".
  3. The ❌ 404 error component is not shown.
  4. The pagination component remains visible, even though there are no search results.

Expected behaviour

  1. Perform a search on the blog page or contributors page.
  2. If no results are found, the system should display a ❌ 404 error component.
  3. The pagination component should be hidden if there are no search results.

Reproduction steps

1. Go to the blog page or contributors page.
2. Enter a search query in the search bar.
3. Submit the search request.
4. Verify that no results are found.
5. Observe that the pagination component shows "1/0".
6. Confirm that the ❌ 404 error component is not displayed.

Note that the pagination component remains visible, even without search results.

Screenshots

image

image

Logs

No response

Browsers

Firefox, Chrome, Safari, Microsoft Edge, Opera

OS

Windows, Linux, Mac

Are you contributing for a program ?

GSSoC2023

Code of Conduct

github-actions[bot] commented 1 year ago

Hello @Nishitbaria! Thank you for raising this issue.

Please make sure to follow our Contributing Guidelines. 💪🏻 Don't forget to ⭐ our Project-Amupedia. 📔

Our review team will carefully assess the issue and reach out to you soon! 😇 We appreciate your patience! 😀

tayyab-ilyas commented 1 year ago

Go ahead @Nishitbaria

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 14 days with no activity.