Skip to content

Commit

Permalink
fixed 404 issue when pressing cancel
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducica committed Jan 7, 2025
1 parent 87cb05b commit b4a68df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion invenio_userprofiles/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
from .ext import InvenioUserProfiles
from .models import UserProfile, UserProfileProxy

__version__ = "4.0.0"
__version__ = "4.0.1"

__all__ = (
"__version__",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,10 @@ <h2 class="ui tiny header inline-block m-0">{{ panel_title|default("") }}</h2>

{%- if not read_only %}
<div class="form-actions">
<a role="button" href="." class="ui labeled icon button">
<a role="button" href="{{ url_for('invenio_userprofiles.profile') }}" class="ui labeled icon button">
<i class="close icon" aria-hidden></i>
{{ _('Cancel') }}
</a>

<button type="submit" name="submit" value="profile" class="ui primary labeled icon button">
<i class="check icon" aria-hidden="true"></i>
{{ _('Update profile') }}
Expand Down Expand Up @@ -98,7 +97,7 @@ <h2 class="ui tiny header inline-block m-0">
{%- endfor %}

<div class="form-actions">
<a role="button" href="." class="ui labeled icon button">
<a role="button" href="{{ url_for('invenio_userprofiles.profile') }}" class="ui labeled icon button">
<i class="close icon" aria-hidden="true"></i>
{{ _('Cancel') }}
</a>
Expand Down

0 comments on commit b4a68df

Please sign in to comment.