We are accessing moodle through different links (one for local use and one over internet). When a generates a password reset request, he/she gets a link to reset password in their email. If the person was accessing moodle from local link, he/she will have local link in their mail and if the person was accessing moodle from internet link, he/she will have internet link in their mail.
But I want to send the same link irrespective of the link being accessed. I have tried modifying strings in language customisation, but it did not work.
We are accessing moodle through different links (one for local use and one over internet).
It has never been officially supported. In older Moodle versions, even files serving did not work in such a scenario. It is generally better to have a single domain name to access your moodle host. It is possible to configure your local DNS so that for intranet users it returns one IP and for external internet users it returns another one.
In these emails, Moodle uses the value of
$CFG->wwwroot defined in config.php to generate the link to itself.