Просмотр исходного кода

Fixes #3571: Prevent erroneous redirects when editing tags

Jeremy Stretch 6 лет назад
Родитель
Сommit
ed785098a6
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      CHANGELOG.md
  2. 1 1
      netbox/templates/extras/tag.html

+ 1 - 0
CHANGELOG.md

@@ -2,6 +2,7 @@ v2.6.6 (FUTURE)
 
 ## Bug Fixes
 
+* [#3571](https://github.com/netbox-community/netbox/issues/3571) - Prevent erroneous redirects when editing tags
 * [#3573](https://github.com/netbox-community/netbox/issues/3573) - Ensure consistent display of changelog retention period
 * [#3574](https://github.com/netbox-community/netbox/issues/3574) - Change `device` to `parent` in interface editing VLAN filtering logic
 * [#3575](https://github.com/netbox-community/netbox/issues/3575) - Restore label for comments field when bulk editing circuits

+ 1 - 1
netbox/templates/extras/tag.html

@@ -24,7 +24,7 @@
     </div>
     <div class="pull-right">
         {% if perms.taggit.change_tag %}
-            <a href="{% url 'extras:tag_edit' slug=tag.slug %}?return_url={% url 'extras:tag' slug=tag.slug %}" class="btn btn-warning">
+            <a href="{% url 'extras:tag_edit' slug=tag.slug %}" class="btn btn-warning">
                 <span class="glyphicon glyphicon-pencil" aria-hidden="true"></span>
                 Edit this tag
             </a>