Update Web Form header buttons (#6190)

The headers buttons needs to have absolute path in order to function, otherwise the pathname and the route is concatenated.
This commit is contained in:
agustincl 2018-10-05 07:56:01 +02:00 committed by Rushabh Mehta
parent fac588631d
commit 899b5d4d0f

View file

@ -17,7 +17,7 @@
{% if not read_only and has_header %}
<div style="padding-bottom: 15px;">
{% if login_required -%}
<a href="{{ cancel_url or pathname }}" class="btn btn-default btn-sm">
<a href="/{{ cancel_url or pathname }}" class="btn btn-default btn-sm">
{{ _("Cancel") }}</a>
{%- endif %}
{% if not is_list %}