# How to configure the system messages <link> url?

we have got a multisite environment and have imported users with different preferred languages (de and en). Therefore we made a module, cause the feedme plugin doens't set the preferred language https://github.com/craftcms/feed-me/issues/612. All the users are set to pending. Now we want to sent the activation mails for alle these imported users, so they can set their passwords.

The email is translated cause of the preferred language - thumbs up - but the with the activation code is just from one domain - in our case the .de domain. This means, all users with a preferred language set to "en" are getting a well translated mail, with a link to the .de page and not the .com for setting their passwords.

So the question is: why is the link not dependent on the preferred language as well or could be localized via a config for this case?

The workaround discussed at the bottom there is probably your best bet: use Twig's replace filter to dynamically replace the domain name in the link variable according to what you know about the user (in your case, their preferred language).
{% set link = user.preferredLanguage == 'en' ? link|replace('https://www.site.de','https://www.site.com') : link %}