How to insert discount code into URL so discount is auto-applied to all prices

Yes thank. That’s exactly what I needed, adding the redirect to the end of the discount url …?redirect=/path

Much appreciated