Skip to content

Commit

Permalink
Use real sysname in hyperlink to ipdevinfo
Browse files Browse the repository at this point in the history
This fixes a small bug in the default configuration of
etc/geomap/popup_place.html

Because:
- Geomap may internally have shortened box.sysname by chopping off the
  DOMAIN_SUFFIX.
- Using a shortened sysname will not produce a valid ipdevinfo link.
- Geomap stores the original sysname in the box.real_sysname property.

Fixes #2239
  • Loading branch information
lunkwill42 committed Jan 15, 2021
1 parent 3d2d726 commit acd137b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/nav/etc/geomap/popup_place.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
{% for box in room.netboxes %}
<li>
<h5>
<a href="{% url 'ipdevinfo-details-by-name' box.sysname %}"
<a href="{% url 'ipdevinfo-details-by-name' box.real_sysname %}"
target="_blank"
title="View in IP Device Info">{{ box.sysname }}</a>
</h5>
Expand Down

0 comments on commit acd137b

Please sign in to comment.