You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(account): use absolute {% url %} for form actions in templates
Relative form action URLs broke on sub-pages (/profile/scenes/).
Pass edit_action_url and delete_action_url as context variables
to resource_list_pan.html from all 6 callers.
{% include 'users/includes/resource_list_pan.html' with items=namespaces list_type='namespace' user=user %}
170
+
{% url 'users:profile_bulk_namespace' as delete_action_url %}
171
+
{% include 'users/includes/resource_list_pan.html' with items=namespaces list_type='namespace' user=user delete_action_url=delete_action_url detail_base_url='profile/namespaces/' %}
{% include 'users/includes/resource_list_pan.html' with items=scenes list_type='scene' user=user %}
203
+
{% url 'users:profile_bulk_scene' as delete_action_url %}
204
+
{% include 'users/includes/resource_list_pan.html' with items=scenes list_type='scene' user=user delete_action_url=delete_action_url detail_base_url='profile/scenes/' %}
203
205
</form>
204
206
{% if sc_count >= 1 %}
205
207
<divclass="text-right d-flex justify-content-end mb-4"><ahref="{% url 'users:profile_scenes' %}">View all
{% include 'users/includes/resource_list_pan.html' with items=devices list_type='device' user=user %}
236
+
{% url 'users:profile_bulk_device' as delete_action_url %}
237
+
{% include 'users/includes/resource_list_pan.html' with items=devices list_type='device' user=user delete_action_url=delete_action_url detail_base_url='profile/devices/' %}
235
238
</form>
236
239
{% if dev_count >= 1 %}
237
240
<divclass="text-right d-flex justify-content-end mb-4"><ahref="{% url 'users:profile_devices' %}">View all
0 commit comments