Skip to content
Snippets Groups Projects
Unverified Commit 1ccd44ef authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

header_cta.external: handle blank correctly

parent cd645439
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,6 @@ header_cta:
label: >-
<%= prepare_text_for_static @l10n.header_cta_label %>
target: "<%= @l10n.header_cta_url %>"
external: <%= !(@l10n.header_cta_url.to_s.start_with?('/') || @l10n.header_cta_url.to_s.start_with?(@website.url)) %>
external: <%= @l10n.header_cta_url.present? && !(@l10n.header_cta_url.start_with?('/') || @l10n.header_cta_url.start_with?(@website.url)) %>
<%= render 'admin/communication/contents/static', about: @l10n %>
---
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment