ERPNext Foundation ERPNext Cloud User Manual Blog Discuss Frappé* Donate

How to include link to Document in Email Alert



Does anyone know the proper way to add a link to a document in email alerts? I tried using {{ doc.get_url() }} but it produces an output without the domain as shown below:


Any insight will be greatly appreciated



Found the solution:

{{ frappe.utils.get_url_to_form(doc.doctype, }}