How to redirect the link on email's address to correct one

I have changed my external_url to correct one, which works well. such as, however, when the user receive the email from my Gitlab, the hyper link in these email doesn’t contains the port 9999, it’s only, then how can I resolve this?