I’m making a search bar you can access on the website, that is in the navbar. I can click this search bar to input a text and press enter to search for a word. So far, using a site.php controller, this seems to be working but this is not returning anything, because I need to redirect my search to localhost/search(?q=QUERY).
I’m using the basic controller (called site.php) and the recommended form.
Thanks, but it doesn’t search for the query, it only redirects me to /search. I have no clue on how to search for what was entered before the form submitted…
I was expecting this to send the query too… /search?q=word