Hi,
I’m trying to add a link field to a custom module like this: URL and Link fields now available in Custom Modules
When I do this and click the “read more” link it just takes me back to the same page the module is on.
I have made a link field HubL variable called “link_field”
<div class="uilink" {{module.link_field.href}} >
{% set href = module.link_field.url.href %}
{% if module.link_field.url.type is equalto "EMAIL_ADDRESS" %}
{% set href = "mailto:" + href %}
{% endif %}
<a href="{{ href }}"
{% if module.link_field.open_in_new_tab %}target="_blank"{% endif %}
{% if module.link_field.no_follow %}rel="nofollow"{% endif %}>
Read more</a>
</div>
Not sure what I’m doing wrong here?
Thanks!
