diff --git a/bookwyrm/models/shelf.py b/bookwyrm/models/shelf.py
index 739c0599..515bb161 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 9e045572..5173da07 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 90a2e607..0c3e94e3 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 %}
{% url 'user-feed' user|username as url %}
diff --git a/bookwyrm/urls.py b/bookwyrm/urls.py
index 51638b8a..c5f2f542 100644
--- a/bookwyrm/urls.py
+++ b/bookwyrm/urls.py
@@ -154,13 +154,14 @@ urlpatterns = [
# shelf
re_path(r"%s/books/?$" % user_path, views.user_shelves_page, name="user-shelves"),
re_path(
- r"^%s/books/(?P[\w-]+)(.json)?/?$" % user_path,
+ r"^%s/(helf|books)/(?P[\w-]+)(.json)?/?$" % user_path,
views.Shelf.as_view(),
name="shelf",
),
re_path(
- r"^%s/books/(?P[\w-]+)(.json)?/?$" % local_user_path,
+ r"^%s/(books|shelf)/(?P[\w-]+)(.json)?/?$" % local_user_path,
views.Shelf.as_view(),
+ name="shelf"
),
re_path(r"^create-shelf/?$", views.create_shelf, name="shelf-create"),
re_path(r"^delete-shelf/(?P\d+)?$", views.delete_shelf),