Action URLs from CP to a Craft 3 plugin controller
I think you should use {{ actionUrl('myplugin/products/get-products') }}.

But in a form, it's maybe even better/easier to use:

&lt;input type="hidden" name="action" value="myplugin/products/get-products" /&gt;