1
0
Fork 0

Urlencode tag names as identifiers

Fixes #37
This commit is contained in:
Mouse Reeve 2020-03-07 13:29:57 -08:00
parent c07aa387fa
commit 95c8dc1d67
3 changed files with 6 additions and 6 deletions

View file

@ -45,7 +45,7 @@ urlpatterns = [
re_path(r'^book/(?P<book_identifier>\w+)/?$', views.book_page),
re_path(r'^book/(?P<book_identifier>\w+)/(?P<tab>friends|local|federated)?$', views.book_page),
re_path(r'^author/(?P<author_identifier>\w+)/?$', views.author_page),
re_path(r'^tag/(?P<tag_id>[\w-]+)/?$', views.tag_page),
re_path(r'^tag/(?P<tag_id>.+)/?$', views.tag_page),
re_path(r'^shelf/%s/(?P<shelf_identifier>[\w-]+)/?$' % username_regex, views.shelf_page),
# internal action endpoints