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 authored and ntarocco committed Jan 8, 2025
1 parent 87cb05b commit 8c20107
Showing 1 changed file with 2 additions and 3 deletions.
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 8c20107

Please sign in to comment.