Skip to content

Commit

Permalink
Fixes #7106: Fix incorrect "Map It" button URL on a site's Physical A…
Browse files Browse the repository at this point in the history
…ddress field
  • Loading branch information
thatmattlove committed Aug 31, 2021
1 parent b95e835 commit 2b263b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/release-notes/version-3.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* [#7093](https://github.com/netbox-community/netbox/issues/7093) - Multi-select custom field filters should employ exact match
* [#7096](https://github.com/netbox-community/netbox/issues/7096) - Home links should honor `BASE_PATH` configuration
* [#7101](https://github.com/netbox-community/netbox/issues/7101) - Enforce `MAX_PAGE_SIZE` for table and REST API pagination
* [#7106](https://github.com/netbox-community/netbox/issues/7106) - Fix incorrect "Map It" button URL on a site's Physical Address field

---

Expand Down
6 changes: 3 additions & 3 deletions netbox/templates/dcim/site.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ <h5 class="card-header">
<td>
{% if object.physical_address %}
<div class="float-end noprint">
<a href="{{ settings.MAPS_URL }}{{ object.latitude }},{{ object.longitude }}" target="_blank" class="btn btn-primary btn-sm">
<i class="mdi mdi-map-marker"></i> Map it
<a href="{{ settings.MAPS_URL }}{{ object.physical_address|urlencode }}" target="_blank" class="btn btn-primary btn-sm">
<i class="mdi mdi-map-marker"></i> Map It
</a>
</div>
<span>{{ object.physical_address|linebreaksbr }}</span>
Expand All @@ -129,7 +129,7 @@ <h5 class="card-header">
{% if object.latitude and object.longitude %}
<div class="float-end noprint">
<a href="{{ settings.MAPS_URL }}{{ object.latitude }},{{ object.longitude }}" target="_blank" class="btn btn-primary btn-sm">
<i class="mdi mdi-map-marker"></i> Map it
<i class="mdi mdi-map-marker"></i> Map It
</a>
</div>
<span>{{ object.latitude }}, {{ object.longitude }}</span>
Expand Down

0 comments on commit 2b263b0

Please sign in to comment.