Skip to content

Commit e7bf349

Browse files
committed
Fix site topology button url
Now renders using Django url template.
1 parent 0433bc7 commit e7bf349

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

nextbox_ui_plugin/templates/nextbox_ui_plugin/site_topo_button.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
1111
<h2 class="modal-title" style="text-align: center;">{{ object.name }} Topology</h2>
1212
</div>
13-
<iframe src="/plugins/nextbox-ui/site_topology/{{ object.id }}/" style="height: 75vh; width: 100%;"></iframe>
13+
<iframe src="{% url 'plugins:nextbox_ui_plugin:site_topology' site_id=object.id %}" style="height: 75vh; width: 100%;"></iframe>
1414
</div>
1515
</div>
1616
</div>

nextbox_ui_plugin/urls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
from . import views
33

44
urlpatterns = [
5-
path('site_topology/<int:site_id>/', views.TopologyView.as_view()),
5+
path('site_topology/<int:site_id>/', views.TopologyView.as_view(), name='site_topology'),
66
]

0 commit comments

Comments
 (0)