diff --git a/mnemosyne/library/urls.py b/mnemosyne/library/urls.py index 7d78944..f39004f 100644 --- a/mnemosyne/library/urls.py +++ b/mnemosyne/library/urls.py @@ -17,6 +17,12 @@ urlpatterns = [ # Library CRUD path("", views.library_list, name="library-list"), path("create/", views.library_create, name="library-create"), + # Static-prefix routes must come before / or it will swallow them. + # Search (Phase 3) + path("search/", views.search_page, name="search"), + # Concepts (Phase 3) + path("concepts/", views.concept_list_page, name="concept-list"), + path("concepts//", views.concept_detail_page, name="concept-detail"), path("/", views.library_detail, name="library-detail"), path("/search/", views.library_search, name="library-search"), path("/edit/", views.library_edit, name="library-edit"), @@ -55,11 +61,6 @@ urlpatterns = [ path("items//delete/", views.item_delete, name="item-delete"), # Image views path("images//view/", views.image_serve, name="image-serve"), - # Search (Phase 3) - path("search/", views.search_page, name="search"), - # Concepts (Phase 3) - path("concepts/", views.concept_list_page, name="concept-list"), - path("concepts//", views.concept_detail_page, name="concept-detail"), # DRF API path("api/", include("library.api.urls")), ]