Document URL in notification template

How do I get document url in notification? using {{ doc.url }} gives me this error.

no such element: erpnext.support.doctype.issue.issue.Issue object['url']

Found it

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