Fixes #19986: Fix plugin list view button URLs #1520

Closed
opened 2026-04-06 02:55:57 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @jnovinger on 8/4/2025

Fixes: #19986

Plugin list view action buttons (Add, Import, Export) were generating 404 errors because ObjectAction.get_url() was manually constructing view names without the required "plugins:" namespace prefix for plugin models.

Replace manual view name construction with NetBox's get_viewname() utility function, which properly handles plugin detection and namespace prefixing for both core and plugin models.

*Originally created by @jnovinger on 8/4/2025* ### Fixes: #19986 Plugin list view action buttons (Add, Import, Export) were generating 404 errors because ObjectAction.get_url() was manually constructing view names without the required "plugins:" namespace prefix for plugin models. Replace manual view name construction with NetBox's get_viewname() utility function, which properly handles plugin detection and namespace prefixing for both core and plugin models.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/netbox#1520