Error redirect in bulk-editing under HTMX navigation results in a blank page #17548
Labels
netbox
severity: low
Does not significantly disrupt application functionality, or a workaround is available
status: blocked
Another issue or external requirement is preventing implementation
topic: htmx navigation
For issues where HTMX navigation is enabled
type: bug
A confirmed report of unexpected behavior in the application
Deployment Type
NetBox Cloud
NetBox Version
v4.1.0
Python Version
3.10
Steps to Reproduce
Expected Behavior
Page should remain on the Interfaces object list, and a toast should appear saying "No interfaces were selected" as occurs under non-HTMX navigation.
Observed Behavior
The page is replaced with a blank pane, and no toast appears.
This is because
BulkEditView
is encountering an error and issuing aredirect
to theget_return_url
, but because it's happening in an HTMX container the browser doesn't render it properly at the top level.netbox/netbox/netbox/views/generic/bulk_views.py
Line 701 in 485d3ae
Error conditions like this need to be handled in a different way under HTMX.
The text was updated successfully, but these errors were encountered: