remove trailing slash on url for get_products_count