mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-14 09:51:22 -06:00
Fixes #2712: Preserve list filtering after editing objects in bulk
This commit is contained in:
parent
7acbeb55bc
commit
853b1fad15
@ -11,6 +11,7 @@ v2.5.2 (FUTURE)
|
|||||||
* [#2691](https://github.com/digitalocean/netbox/issues/2691) - Cable trace should follow circuits
|
* [#2691](https://github.com/digitalocean/netbox/issues/2691) - Cable trace should follow circuits
|
||||||
* [#2698](https://github.com/digitalocean/netbox/issues/2698) - Remove pagination restriction on bulk component creation for devices/VMs
|
* [#2698](https://github.com/digitalocean/netbox/issues/2698) - Remove pagination restriction on bulk component creation for devices/VMs
|
||||||
* [#2707](https://github.com/digitalocean/netbox/issues/2707) - Correct permission evaluation for circuit termination cabling
|
* [#2707](https://github.com/digitalocean/netbox/issues/2707) - Correct permission evaluation for circuit termination cabling
|
||||||
|
* [#2712](https://github.com/digitalocean/netbox/issues/2712) - Preserve list filtering after editing objects in bulk
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
@ -55,8 +55,9 @@ class GetReturnURLMixin(object):
|
|||||||
|
|
||||||
def get_return_url(self, request, obj=None):
|
def get_return_url(self, request, obj=None):
|
||||||
|
|
||||||
# First, see if `return_url` was specified as a query parameter. Use it only if it's considered safe.
|
# First, see if `return_url` was specified as a query parameter or form data. Use this URL only if it's
|
||||||
query_param = request.GET.get('return_url')
|
# considered safe.
|
||||||
|
query_param = request.GET.get('return_url') or request.POST.get('return_url')
|
||||||
if query_param and is_safe_url(url=query_param, allowed_hosts=request.get_host()):
|
if query_param and is_safe_url(url=query_param, allowed_hosts=request.get_host()):
|
||||||
return query_param
|
return query_param
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user