mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-28 02:50:38 +00:00
Fixes shelf redirects
This commit is contained in:
parent
c7863ec8f0
commit
210cf4a702
1 changed files with 2 additions and 2 deletions
|
@ -102,7 +102,7 @@ def create_shelf(request):
|
|||
return redirect(request.headers.get("Referer", "/"))
|
||||
|
||||
shelf = form.save()
|
||||
return redirect("/user/%s/shelf/%s" % (request.user.localname, shelf.identifier))
|
||||
return redirect(shelf.local_path)
|
||||
|
||||
|
||||
@login_required
|
||||
|
@ -114,7 +114,7 @@ def delete_shelf(request, shelf_id):
|
|||
return HttpResponseBadRequest()
|
||||
|
||||
shelf.delete()
|
||||
return redirect("/user/%s/shelves" % request.user.localname)
|
||||
return redirect("user-shelves", request.user.localname)
|
||||
|
||||
|
||||
@login_required
|
||||
|
|
Loading…
Reference in a new issue