How can I override my base URL for ajax requests?

For stores that require a language code to be appended to URLs, such as, it can be necessary to use a base domain override in the Magento Backend > MageMail Advanced SettingsBase Domain Override:

To verify it, you should be able to see it shows up in the front javascript in the  MageMailData.magento_base_url field.

And, finally, you can test an AJAX request to confirm it:

Still need help? Contact Us Contact Us