Wrong link target in VRF template #1917

Closed
opened 2025-12-29 17:20:29 +01:00 by adam · 0 comments
Owner

Originally created by @eriktm on GitHub (Aug 8, 2018).

Environment

  • Python version: 3.6.3
  • NetBox version: 2.4.1

Steps to Reproduce

When viewing the changelog for a specific VRF at /ipam/vrfs/<pk>/changelog/, notice that the VRF tab links to the current page (changelog) instead of the VRF detail view.

This seems to be due to an error in the file /netbox/templates/ipam/vrf.html on line 43;
<a href="{{ aggregate.get_absolute_url }}">VRF</a>

Changing this function to target the vrf object would probably fix the issue.

Originally created by @eriktm on GitHub (Aug 8, 2018). <!-- NOTE: This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report. --> ### Environment * Python version: 3.6.3 * NetBox version: 2.4.1 <!-- Describe in detail the steps that someone else can take to reproduce this bug using the current stable release of NetBox (or the current beta release where applicable). --> ### Steps to Reproduce When viewing the changelog for a specific VRF at `/ipam/vrfs/<pk>/changelog/`, notice that the VRF tab links to the current page (changelog) instead of the VRF detail view. This seems to be due to an error in the file `/netbox/templates/ipam/vrf.html` on line 43; `<a href="{{ aggregate.get_absolute_url }}">VRF</a>` Changing this function to target the `vrf` object would probably fix the issue.
adam added the type: bugstatus: accepted labels 2025-12-29 17:20:29 +01:00
adam closed this issue 2025-12-29 17:20:29 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#1917