Преглед изворни кода

Fixes #4939: Fix linking to LAG interfaces on other VC members

Jeremy Stretch пре 5 година
родитељ
комит
cdfec4d865
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      docs/release-notes/version-2.9.md
  2. 1 1
      netbox/templates/dcim/inc/interface.html

+ 1 - 0
docs/release-notes/version-2.9.md

@@ -15,6 +15,7 @@
 * [#4930](https://github.com/netbox-community/netbox/issues/4930) - Replicate label values when instantiating device type components
 * [#4930](https://github.com/netbox-community/netbox/issues/4930) - Replicate label values when instantiating device type components
 * [#4931](https://github.com/netbox-community/netbox/issues/4931) - Fix DoesNotExist exception when deleting devices
 * [#4931](https://github.com/netbox-community/netbox/issues/4931) - Fix DoesNotExist exception when deleting devices
 * [#4938](https://github.com/netbox-community/netbox/issues/4938) - Show add, import buttons on virtual chassis list view
 * [#4938](https://github.com/netbox-community/netbox/issues/4938) - Show add, import buttons on virtual chassis list view
+* [#4939](https://github.com/netbox-community/netbox/issues/4939) - Fix linking to LAG interfaces on other VC members
 
 
 ---
 ---
 
 

+ 1 - 1
netbox/templates/dcim/inc/interface.html

@@ -22,7 +22,7 @@
     {# LAG #}
     {# LAG #}
     <td>
     <td>
         {% if iface.lag %}
         {% if iface.lag %}
-            <a href="#interface_{{ iface.lag }}" class="label label-primary" title="{{ iface.lag.description }}">{{ iface.lag }}</a>
+            <a href="{{ iface.lag.device.get_absolute_url }}#interface_{{ iface.lag }}" class="label label-primary" title="{{ iface.lag.description }}">{{ iface.lag }}</a>
         {% endif %}
         {% endif %}
     </td>
     </td>