diff --git a/bookwyrm/views/books/books.py b/bookwyrm/views/books/books.py index 48b148e3..d0106246 100644 --- a/bookwyrm/views/books/books.py +++ b/bookwyrm/views/books/books.py @@ -47,12 +47,12 @@ class Book(View): .first() ) - if r := maybe_redirect_local_path(request, book): - return r - if not book or not book.parent_work: raise Http404() + if r := maybe_redirect_local_path(request, book): + return r + # all reviews for all editions of the book reviews = models.Review.privacy_filter(request.user).filter( book__parent_work__editions=book