diff --git a/bookwyrm/models/shelf.py b/bookwyrm/models/shelf.py index 739c0599a..515bb1610 100644 --- a/bookwyrm/models/shelf.py +++ b/bookwyrm/models/shelf.py @@ -49,7 +49,7 @@ class Shelf(OrderedCollectionMixin, BookWyrmModel): def get_remote_id(self): """ shelf identifier instead of id """ base_path = self.user.remote_id - return "%s/shelf/%s" % (base_path, self.identifier) + return "%s/books/%s" % (base_path, self.identifier) class Meta: """ user/shelf unqiueness """ diff --git a/bookwyrm/templates/user/shelf.html b/bookwyrm/templates/user/shelf.html index 9e0455726..5173da076 100644 --- a/bookwyrm/templates/user/shelf.html +++ b/bookwyrm/templates/user/shelf.html @@ -22,7 +22,7 @@ diff --git a/bookwyrm/templates/user/user_layout.html b/bookwyrm/templates/user/user_layout.html index 90a2e6070..0c3e94e3c 100644 --- a/bookwyrm/templates/user/user_layout.html +++ b/bookwyrm/templates/user/user_layout.html @@ -42,7 +42,7 @@ {% endif %} {% with user|username as username %} -{% if 'user/'|add:username|add:'/books' not in request.path %} +{% if 'user/'|add:username|add:'/books' not in request.path and 'user/'|add:username|add:'/shelf' not in request.path %}