Email not sending correct url on updating nginx port

I updated my nginx port and reload it, everything is working fine but when I sent welcome email, it send me previous port url how to resolve this?

Thanks for reporting this Khadija

A search https://discuss.erpnext.com/search?q=nginx%20change%20port%20email%20link

uncovered this Current procedure to change http port

No sign of that reported here so added it https://github.com/frappe/erpnext/issues/17044