• Resolved nareshvachhani-1

    (@nareshvachhani-1)


    I found an issue with WooCommerce product search for few specific keyword patters only. Instead of proper/empty result page, search is redirecting to home page without throwing any errors.

    Only WooCommerce plugin is currently active on site and I had also tested same with default WordPress theme and keeping all other plugins in disable mode.

    https://dev.amahort.com
    Following search term is not working,
    804 insert

    Following search terms are working fine,
    804 inser
    insert 804
    insert

    Looks like for this pattern( Any number + SQL reserved keyword like insert, update… ) it’s breaking.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support kellymetal a11n

    (@kellymetal)

    Hi there,

    Thank you for post here!

    I’ve done some testing with just WooCommerce and the default Storefront theme, and am not seeing the same thing though. I tried with several combinations of numbers and SQL reserved words, and they seemed to search as usual — a few examples:

    search
    Link to image: https://d.pr/i/Air4Op

    search
    Link to image: https://d.pr/i/bzJfp4

    Since you have only WooCommerce active, and are using a default WordPress theme, it’s possible the behavior you are seeing is due to security settings on your server, or redirects / settings in the .htaccess file on your site. I would recommend reaching out to your hosting company to ask about this — it’s possible they will know what is causing the behavior you are seeing.

    I hope that helps! Have a wonderful day!

    Plugin Support Yuki K a11n.

    (@yukikatayama)

    Automattic Happiness Engineer

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Product search issue with specific format only’ is closed to new replies.