Ensure add-to-cart is not present when redirecting after a deletion.

Fixes #5645