How to include link to Document in Email Alert

Hi,

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:

/desk#Form/Quotation/QTN-00002

Any insight will be greatly appreciated

Thanks

Found the solution:

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

Cheers!