1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fix return URL when editing a service

This commit is contained in:
Jeremy Stretch
2020-09-21 13:34:39 -04:00
parent e77f1bdd85
commit b85990daa6
2 changed files with 1 additions and 4 deletions

View File

@@ -15,7 +15,7 @@
<i class="fa fa-history"></i>
</a>
{% if perms.ipam.change_service %}
<a href="{% url 'ipam:service_edit' pk=service.pk %}" class="btn btn-info btn-xs" title="Edit service">
<a href="{% url 'ipam:service_edit' pk=service.pk %}?return_url={{ service.parent.get_absolute_url }}" class="btn btn-info btn-xs" title="Edit service">
<i class="glyphicon glyphicon-pencil"></i>
</a>
{% endif %}