You have a WooCommerce product called “VREIUTERTKXYU“. You search for “VREIUTERTKXYU” (exact match). WooCommerce, by default, redirects you to the single product page as there is only 1 possible search result (as opposed to sending you to the search result page).
In today’s tutorial, we will be deactivating this WooCommerce function and go back to the normal (at least, to me) behavior: even if there is an exact match in a search (single search result), we still want to display the search page.
The screenshot that follows gives you a working proof, once the snippet you find below is active. Enjoy!
PHP Snippet: Disable Redirect For Single Search Results @ WooCommerce Search
/**
* @snippet Disable Single Search Result Redirect | WooCommerce
* @how-to businessbloomer.com/woocommerce-customization
* @author Rodolfo Melogli, Business Bloomer
* @compatible WooCommerce 6
* @community https://businessbloomer.com/club/
*/
add_filter( 'woocommerce_redirect_single_search_result', '__return_false' );
This snippet no longer seems to work (tried with minimal setup, only Woocommerce and snippet)
I get 11 search results in your case, so there is no redirect anyway. Can you try with a search that returns only one product?