GetReturnURLMixin Support for Plugin Views #9681

Closed
opened 2025-12-29 21:20:47 +01:00 by adam · 1 comment
Owner

Originally created by @9er-tom on GitHub (May 15, 2024).

Originally assigned to: @renatoalmeidaoliveira on GitHub.

NetBox version

v3.7.3

Feature type

Change to existing functionality

Proposed functionality

The automatic return URL generation for views (specifically object edit views) should be compatible with plugin views.

Currently only core views are supported as get_return_url() in netbox/utilities/views.py:137 does not include the "plugins:" namespace

Use case

This would alleviate the need for specifying default_return_url for plugin views

Database changes

No response

External dependencies

No response

Originally created by @9er-tom on GitHub (May 15, 2024). Originally assigned to: @renatoalmeidaoliveira on GitHub. ### NetBox version v3.7.3 ### Feature type Change to existing functionality ### Proposed functionality The automatic return URL generation for views (specifically object edit views) should be compatible with plugin views. Currently only core views are supported as `get_return_url()` in [netbox/utilities/views.py:137](https://github.com/netbox-community/netbox/blob/develop/netbox/utilities/views.py#L137) does not include the "plugins:" namespace ### Use case This would alleviate the need for specifying `default_return_url` for plugin views ### Database changes _No response_ ### External dependencies _No response_
adam added the status: acceptedtype: featuretopic: pluginsnetboxcomplexity: low labels 2025-12-29 21:20:47 +01:00
adam closed this issue 2025-12-29 21:20:47 +01:00
Author
Owner

@alexblaeuer commented on GitHub (Mar 13, 2025):

I also run into this issue while developing a plugin and added the feature in my fork by getting the viewname of the model (693b10bd79). Can I open a PR for this issue?

@alexblaeuer commented on GitHub (Mar 13, 2025): I also run into this issue while developing a plugin and added the feature in my fork by getting the viewname of the model (https://github.com/alexblaeuer/netbox/commit/693b10bd79ed8a4630da6d960a113bcc8db4b9ed). Can I open a PR for this issue?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#9681