mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 19:08:38 -06:00
Preserve query parameters on redirect after clicking "add another"
This commit is contained in:
parent
5c0fffcfc5
commit
3890cdb383
@ -214,7 +214,7 @@ class ObjectEditView(GetReturnURLMixin, View):
|
||||
UserAction.objects.log_edit(request.user, obj, msg)
|
||||
|
||||
if '_addanother' in request.POST:
|
||||
return redirect(request.path)
|
||||
return redirect(request.get_full_path())
|
||||
|
||||
return_url = form.cleaned_data.get('return_url')
|
||||
if return_url is not None and is_safe_url(url=return_url, host=request.get_host()):
|
||||
|
Loading…
Reference in New Issue
Block a user