Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hi,

    You can remove this parameter with following code

    add_filter('aws_searchbox_markup', 'aws_searchbox_markup');
    function aws_searchbox_markup( $markup ) {
        $pattern = '/(<input type="hidden" name="type_aws" value="true">)/i';
        $markup = preg_replace( $pattern, '', $markup );
        return $markup;
    }

    But in this case search results page won’t display plugin search results but just standard results.
    Why you want to remove this query parameter?

    Regards

    Thread Starter Jan Horna

    (@janhorna)

    Mihail,

    thanks for your quick reply! Why remove the parameter – pls compare the search results at:

    1. https://www.triexpert.cz/?s=glycerin+16&post_type=product&type_aws=true
    2. https://www.triexpert.cz/?s=glycerin+16&post_type=product

    In this scenario (word + number) the option 2 gives more relevant search results. In other scenarios both options give similar results.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to remove type_aws parameter from the search URL’ is closed to new replies.