Skip to content

Commit

Permalink
communities: config: Update static page URLs to prevent name collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshamarora1 committed Nov 5, 2024
1 parent 8b46ac6 commit 8cfb8fc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions invenio_communities/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@

COMMUNITIES_ROUTES = {
"frontpage": "/communities",
"search": "/communities/search",
"new": "/communities/new",
"search": "/communities-search",
"deprecated_search": "/communities/search",
"new": "/communities-new",
"deprecated_new": "/communities/new",
"upload": "/communities/<pid_value>/upload",
"settings": "/communities/<pid_value>/settings",
"requests": "/communities/<pid_value>/requests",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<h1 class="ui large header m-0">{{_("Communities")}}</h1>

{% if permissions.can_create %}
<a class="ui button positive left labeled icon m-0" href="/communities/new">
<a class="ui button positive left labeled icon m-0" href="{{ config.COMMUNITIES_ROUTES['new'] }}">
<i class="plus icon" aria-hidden="true"></i>
{{ _('New community') }}
</a>
Expand Down

0 comments on commit 8cfb8fc

Please sign in to comment.