Bulk Edit and delete on all resources does not work when "HTMX Navigation" is enabled #9839

Closed
opened 2025-12-29 21:23:25 +01:00 by adam · 0 comments
Owner

Originally created by @akienz on GitHub (Jun 13, 2024).

Originally assigned to: @jeremystretch on GitHub.

Deployment Type

Self-hosted

NetBox Version

v4.0.5

Python Version

3.11

Steps to Reproduce

  1. Enable "HTMX Navigation" in User Preferences > Preferences and save
  2. Go to the list view of any resource, select some and click on "Edit selected"
  3. Do any modification and click on "Apply"
  4. POST-Request will fail because of invalid URL

This also applies for bulk delete with the same behaviour

Expected Behavior

The changes made on the selected resources should be applied

Observed Behavior

When clicking on edit the user gets redirected to the wrong url, i.e.

https://<instance-url>/dcim/devices/%22true%22

instead of

https://<instance-url>/dcim/devices/edit

The edit dialogue appears as expected but saving is not possible because of wrong URL in the POST-Request:

netbox error

Could recreate this in MS Edge, Chrome and Firefox, so it doesn't seem like a client issue. Also tested locally with a fresh netbox installation in docker with the same behaviour

Originally created by @akienz on GitHub (Jun 13, 2024). Originally assigned to: @jeremystretch on GitHub. ### Deployment Type Self-hosted ### NetBox Version v4.0.5 ### Python Version 3.11 ### Steps to Reproduce 1. Enable "HTMX Navigation" in User Preferences > Preferences and save 2. Go to the list view of any resource, select some and click on "Edit selected" 3. Do any modification and click on "Apply" 4. POST-Request will fail because of invalid URL This also applies for bulk delete with the same behaviour ### Expected Behavior The changes made on the selected resources should be applied ### Observed Behavior When clicking on edit the user gets redirected to the wrong url, i.e. `https://<instance-url>/dcim/devices/%22true%22 ` instead of `https://<instance-url>/dcim/devices/edit ` The edit dialogue appears as expected but saving is not possible because of wrong URL in the POST-Request: ![netbox error](https://github.com/netbox-community/netbox/assets/17672659/6bce4e7d-e4b0-41e3-99dd-884aa10a3162) Could recreate this in MS Edge, Chrome and Firefox, so it doesn't seem like a client issue. Also tested locally with a fresh netbox installation in docker with the same behaviour
adam added the type: bugstatus: acceptedseverity: mediumtopic: htmx navigation labels 2025-12-29 21:23:25 +01:00
adam closed this issue 2025-12-29 21:23:26 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9839