Merge pull request #13423 from CommanderRoot/patch-1

Properly fix #13420
This commit is contained in:
Maurício Meneghini Fauth 2017-06-30 01:02:15 -03:00 committed by GitHub
commit 7bc4e18a53

View File

@ -2,8 +2,8 @@
{%- if class is not empty %} class="{{ class }}"{% endif %}>
{% if url is defined and url is iterable %}
<a{% if url['href'] is not empty %} href="{{ url['href'] }}"{% endif -%}
{%- if url['target'] is not empty %} target="{{ url['target']|raw }}"{% endif -%}
<a{% if url['href'] is not empty %} href="{{ url['href']|raw }}"{% endif -%}
{%- if url['target'] is not empty %} target="{{ url['target'] }}"{% endif -%}
{%- if url['target'] is not empty and url['target'] == '_blank' %} rel="noopener noreferrer"{% endif -%}
{%- if url['id'] is not empty %} id="{{ url['id'] }}"{% endif -%}
{%- if url['class'] is not empty %} class="{{ url['class'] }}"{% endif -%}