The Single Product block does not respect the setting under WooCommerce > Settings > Products > General > Add to cart behaviour > Check - Redirect to the cart page after successful addition.
To reproduce
Steps to reproduce the behavior:
Enable redirects to the cart page with the setting under WooCommerce > Settings > Products > General > Add to cart behaviour > Check - Redirect to the cart page after successful addition
Create a product and a page with an FSE theme.
Add the product to the page with the Single Product block.
View the page and click "Add to cart".
User is not redirected to the cart page.
View the cart.
See the product was successfully added.
Expected behavior
For the redirect to the cart page setting to be respected.
This only affects the Single Product Block. The Single Product template works as expected.
Describe the bug
The Single Product block does not respect the setting under WooCommerce > Settings > Products > General > Add to cart behaviour > Check - Redirect to the cart page after successful addition.
To reproduce
Steps to reproduce the behavior:
Expected behavior
For the redirect to the cart page setting to be respected.
This only affects the Single Product Block. The Single Product template works as expected.
Screenshots
https://github.com/woocommerce/woocommerce-blocks/assets/56649567/30eadb80-b54c-4844-870e-e03aa7207a86
Environment
WordPress (please complete the following information):
System Status Report
Desktop (please complete the following information):
Smartphone (please complete the following information):
Untested
Additional context
Found in 6742597-zen