Merge pull request #2938 from jderuiter/redirect-referer

On readthrough, progressupdate or status delete return to previous page
This commit is contained in:
Mouse Reeve 2023-08-06 15:41:26 -07:00 committed by GitHub
commit b7e7867b9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -203,7 +203,7 @@ def delete_readthrough(request):
readthrough.raise_not_deletable(request.user)
readthrough.delete()
return redirect("/")
return redirect_to_referer(request)
@login_required
@ -214,4 +214,4 @@ def delete_progressupdate(request):
update.raise_not_deletable(request.user)
update.delete()
return redirect("/")
return redirect_to_referer(request)