I am creating a search bar such that if the name of a webpage is entered, I want the user to be redirected to that page. To implement this, I have written the following code