So I have a Magento 22.214.171.124 installation with two websites/stores/store views defined. Each with it’s own domain name. Lets call them domain1.com and domain2.com.
domain1.com works fine and even has it’s own SSL certificate which allows pages to be displayed via https.
Domain2, on the other hand, isn’t working correctly.
Browsing the store and it’s products works fine but whenever I add a product to the cart and the shopping cart page is shown, the site is redirected back to domain1.com/checkout/cart instead of domain2.com/checkout/cart.
Both stores have their own base_url’s defined in the appropriate System > Config > Web