mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-13 19:18:16 -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 #}
|
{# RearPort has positions, FrontPort has rear port position #}
|
||||||
{# Ending at a rear port isn't interesting if we know the front port #}
|
{# Ending at a rear port isn't interesting if we know the front port #}
|
||||||
<td>
|
<td>
|
||||||
<a href="{% url 'dcim:device' pk=previous_endpoint.pk %}">
|
<a href="{% url 'dcim:device' pk=previous_endpoint.device.pk %}">
|
||||||
{{ previous_endpoint.device }}
|
{{ previous_endpoint.device }}
|
||||||
</a>
|
</a>
|
||||||
{% with path=iface.via_endpoints|slice:":-1" %}
|
{% with path=iface.via_endpoints|slice:":-1" %}
|
||||||
@ -86,7 +86,7 @@
|
|||||||
{% endwith %}
|
{% endwith %}
|
||||||
</td>
|
</td>
|
||||||
<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 }}
|
{{ previous_endpoint.name }}
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user