Redirect WooComerce to a custom URL after login
If you are sending a URL like: http://site.com/my-account?redirect_to=product-xpto
Open woocommerce/myaccount/form-login.php and add:
<input type=”hidden” name=”redirect” value=”<?= $_GET[‘redirect_to’]; ?>”>