frappe.get_url in notifications (email) returns localhost. It seems that it is getting the value from the host_name in the site_config.
However, it cannot be set to the actual URL as the “localhost” is a solution to a a few pdf issues. For instance, need it so that the pdf will not generate very slowly, and also so that print format pdf attachments in workflow emails will work. Another one is for setting background images in pdfs.
Only workaround I can think of is to hard code the URL in the notifications, any better ideas?
This was what I was thinking as a last resort. But I have other environments, for example UAT, which has a different URL, and the link would be broken then.