Hello,
You have made additional customization to theme files and Ajax add to cart function on grid does not work anymore (you can enable parent theme and compare), that’s why after page reload you are redirected to page with different URL, to the top of the page to WooCommerce success message.
It’s not related to code that you provided. You can enable default theme and try to add any product to cart without Ajax and you’ll see the same result. So, either you need to improve your changes and fix Ajax add to cart for your products or implement some scroll to the product. In any case, additional customization is our the scope of our support. If you need help with additional customization you may contact WPKraken team.
Regards