Skip to content

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

Closed
@akienz

Description

@akienz

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

Metadata

Metadata

Assignees

Labels

severity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtopic: htmx navigationFor issues where HTMX navigation is enabledtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions