From 32661e5787f62fe4eb132838b303c3edd1a6758d Mon Sep 17 00:00:00 2001 From: Saksham Date: Tue, 24 Sep 2024 11:35:58 +0200 Subject: [PATCH] communities: config: Update static page URLs to prevent name collisions --- invenio_communities/communities/schema.py | 2 +- invenio_communities/config.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/invenio_communities/communities/schema.py b/invenio_communities/communities/schema.py index 1db36a74a..b72e00345 100644 --- a/invenio_communities/communities/schema.py +++ b/invenio_communities/communities/schema.py @@ -229,7 +229,7 @@ class Meta: r"^[-\w]+$", flags=re.ASCII, error=_( - "The identifier should contain only letters, numbers, or dashes." + "The identifier should contain only letters, numbers, underscores, or dashes." ), ), is_not_uuid, diff --git a/invenio_communities/config.py b/invenio_communities/config.py index 63bade7fd..851960b43 100644 --- a/invenio_communities/config.py +++ b/invenio_communities/config.py @@ -21,8 +21,8 @@ COMMUNITIES_ROUTES = { "frontpage": "/communities", - "search": "/communities/search", - "new": "/communities/new", + "search": "/search/communities/all", + "new": "/new/communities/create", "upload": "/communities//upload", "settings": "/communities//settings", "requests": "/communities//requests",