Always use home_url as search URL
-
Hello,
I am having issues with the search function on my homepage that runs a woocommerce shop. Whenever a search term with no results is entered on a product page (the search field is in the site’s header), a 404 page is returned instead of the usual “No results found” message. This happens in both AWS and standard WordPress searches.
While this problem isn’t specific to AWS, I want to circumvent it in AWS by always using my site’s home_url as the url for search results (e.g. “www.foo.com/?s=bar&type_aws=true”), regardless of which page the search has been submitted from.
I have looked into the plugin’s php files, but I did not find a way to modify the search result URL to always be based on the home_url.
Any help is appreciated.
Regards,
Rafael
- The topic ‘Always use home_url as search URL’ is closed to new replies.