Cross-site links are not rendered correctly in EXM


Description

When sending messages in EXM, cross-site links can be rendered with a base URL instead of the hostname, defined for sites in the configuration.
As a result, for example, links point to BaseURL, e.g. 
instead of their corresponding sites from configuration: