.getUrl() outputting {{ siteUrl }} in address I haven't used Craft in a while now and I have just revisited it, I'm trying to output an image URL from a global matrix field like so:

{% for block in globalName.matrixField %}

    {% if block.type == "blockType1" %}

        {% set image = block.blockType1.first() %}

        &lt;a href="{{ image.getUrl() }}"&gt;link&lt;/a&gt;

    {% endif %}

{% endfor %}


But it keeps outputting as: {{ siteUrl }}/resources/images/my-image.jpg (instead of actually outputting the website URL).

Am I missing something?
If your putting the variable in the craft settings input, try wrapping it in single brackets like {siteUrl} instead of {{ siteUrl }}

That should do the trick