Rewrite email URL
Learn how to selectively enable URL rewriting in Magento 2 emails when using Front-Commerce
For Merchants also using their Magento2 backend in a non-headless way, it is possible to disable URL rewrites for emails related to the monolithic Magento2 frontend while rewriting emails sent from a Front-Commerce API call.
This feature is an opt-in feature, which means that merchants can choose to enable or disable it based on their requirements.
To do so, go to the "Stores > Configuration > General > Front-Commerce" section and update the configuration as illustrated below:
- when this configuration is
Yes
(default), URLs in all emails sent are rewritten to use the Front-Commerce frontend URL. - when this configuration is
No
, URLs in emails are not rewritten except if the email is directly sent from a Front-Commerce API call.