mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-13 02:58:17 -06:00
Fix broken device link
This commit is contained in:
parent
18fbb9eba1
commit
a8c783bd1c
@ -78,7 +78,7 @@
|
||||
{# RearPort has positions, FrontPort has rear port position #}
|
||||
{# Ending at a rear port isn't interesting if we know the front port #}
|
||||
<td>
|
||||
<a href="{% url 'dcim:device' pk=previous_endpoint.pk %}">
|
||||
<a href="{% url 'dcim:device' pk=previous_endpoint.device.pk %}">
|
||||
{{ previous_endpoint.device }}
|
||||
</a>
|
||||
{% with path=iface.via_endpoints|slice:":-1" %}
|
||||
@ -86,7 +86,7 @@
|
||||
{% endwith %}
|
||||
</td>
|
||||
<td>
|
||||
<a href="{% url 'dcim:device' pk=previous_endpoint.device_id %}">
|
||||
<a href="{% url 'dcim:device' pk=previous_endpoint.device.pk %}">
|
||||
{{ previous_endpoint.name }}
|
||||
</a>
|
||||
</td>
|
||||
|
Loading…
Reference in New Issue
Block a user