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 4, 2024
1 parent 8b46ac6 commit f071b6e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions invenio_communities/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@

COMMUNITIES_ROUTES = {
"frontpage": "/communities",
"search": "/communities/search",
"new": "/communities/new",
"search": "/communities-search",
"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 f071b6e

Please sign in to comment.