How you can redirect back automatically after giving the reviews and ratings on config product in Magento.

I think it could be Magento’s bug or maybe not but i am suffered from this issue.

The issue is that whenever you given rating and reviews on config product and after the rating, you are not allowed to add a product to cart on config product.

So, here i made a simple solution for that.

The solution is you can automatically redirected to that product after successfully given review and rating.

For that you should follow the below steps.

Copy the below file path into your theme or module if the file is override.