Grafana email alerts links showing defaulthost e.g. 127.0.0.1

Grafana email alerts links showing default host e.g. 127.0.0.1. How do i change them to the correct host e.g. Grafana_server?

Thanks

Configure root_url in Grafana configuration and restart your Grafana instance. For example:

root_url = https://example.com/