diff --git a/bookwyrm/templates/snippets/goal_form.html b/bookwyrm/templates/snippets/goal_form.html index 09f052a7..3afcf2ac 100644 --- a/bookwyrm/templates/snippets/goal_form.html +++ b/bookwyrm/templates/snippets/goal_form.html @@ -1,5 +1,5 @@ {% load i18n %} -
+ {% csrf_token %} diff --git a/bookwyrm/urls.py b/bookwyrm/urls.py index 7cf99af3..d54347f0 100644 --- a/bookwyrm/urls.py +++ b/bookwyrm/urls.py @@ -291,7 +291,7 @@ urlpatterns = [ re_path(r"^unshelve/?$", views.unshelve), # goals re_path( - rf"{USER_PATH}/goal/(?P\d{4})/?$", + rf"{LOCAL_USER_PATH}/goal/(?P\d+)/?$", views.Goal.as_view(), name="user-goal", ),