Home Forums WoodMart support forum Bug with URLs when clearing filters

Bug with URLs when clearing filters

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #247116

    Jowo
    Participant

    If you apply filter /category/categoryname/?filter_myfilter=filtername and then hit “Clear filters” the URL will be /category/categoryname without a trailing slash. It should follow the WP standard of appending trailing slash and follow the canonical URL, or you will have two cache versions of the same URL.

    #247233

    Hello,

    Please find this file: woodmart/inc/integrations/woocommerce/template-tags.php then this function: function woodmart_clear_filters_btn() {

    Then find this line:
    $url = home_url( add_query_arg( array( $_GET ), $wp->request ) );

    and replace it with this one:

    $url = woodmart_shop_page_link();

    Best Regards

    #247461

    Jowo
    Participant

    Thanks

    #247647

    You are welcome! If you have any questions please feel free to contact us.

    Best Regards

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Bug with URLs when clearing filters’ is closed to new replies.