cbedroid/CS50-Wiki

Search returning random page

cbedroid opened this issue · 0 comments

Search Issue

Whenever searching for and entry, the search returns takes me to a random page.
For example if I search for "s", I'm redirected to "Python" entry page.

This is not the correct behavior for searches, instead this should be the decision tree for searches.

  • When a user enters any character that's part of an available entry, they should be redirect to the index page containing all the available matches from search.
  • When the user types in the exact match of an available entry, they should be redirect to that exact page
  • When no matches are found, the user should be redirect to notFound page