From cae4934b48833b38c803414464d234f2b37c0f7d Mon Sep 17 00:00:00 2001 From: Joachim Date: Tue, 28 Dec 2021 21:49:52 +0100 Subject: [PATCH] Apply review suggestion --- bookwyrm/urls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bookwyrm/urls.py b/bookwyrm/urls.py index 1cc30092d..87c1e1609 100644 --- a/bookwyrm/urls.py +++ b/bookwyrm/urls.py @@ -276,7 +276,7 @@ urlpatterns = [ # users re_path(rf"{USER_PATH}\.json$", views.User.as_view()), re_path(rf"{USER_PATH}/?$", views.User.as_view(), name="user-feed"), - re_path(rf"@(?P{regex.USERNAME})$", views.user_redirect), + re_path(rf"^@(?P{regex.USERNAME})$", views.user_redirect), re_path(rf"{USER_PATH}/rss/?$", views.rss_feed.RssFeed(), name="user-rss"), re_path( rf"{USER_PATH}/followers(.json)?/?$",