Properly fix #13420

Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
This commit is contained in:
CommanderRoot 2017-06-30 05:50:43 +02:00 committed by GitHub
parent 0f4baa8967
commit f52faf1f7f

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 -%}