You've just added this product to the cart:

document.addEventListener('wpcf7mailsent', function( event ) { location = 'https://wpdev.ink/thank-you/'; }, false );