I want to be able to show only products on sale for any of the categories I have on my website. I have seen that you can use Woocommerce shortcodes.
However my Wordpress theme is dynamic (it runs for all product categories) and I can't really create one page using a shortcode for each of the product categories (some categories are created "on the go" when I add new products).
Is there any way I can simply have a query string to return the category with only on sale products?
For example: https://www.website.com/clothing/dresses?on_sale=true
---EDIT:---
I am not using shortcodes, just want a simple solution for the query parameter.
Forgot to mention that on my case I always have values on the "_regular_price" and "_sale_price" regardless if is on sale or not. Here are the examples:

