Get Entry Edit Link in Twig I want to add an "Edit entry" button on each page for admin users. Am I overlooking a simple way to output the Edit link to the CP edit page for the current entry? Curious if there is something like {{ entry.editLink }}
There is! It's called cpEditUrl.

{% if currentUser %}
   {% if currentUser.isInGroup('admin') %}
       &lt;a href="{{ entry.cpEditUrl }}"&gt;Edit entry&lt;/a&gt;
   {% endif %}
{% endif %}


Or shorter (thanks to MISC):

{% if currentUser.admin %}
    &lt;a href="{{ entry.cpEditUrl }}"&gt;Edit entry&lt;/a&gt;
{% endif %}


Or forget user group altogether (thanks to Phil Gyford and bennobo):

{% if entry.isEditable() %}
    &lt;a href="{{ entry.cpEditUrl }}"&gt;Edit entry&lt;/a&gt;
{% endif %}