Dynamic anchor image link not working

I got an anchor image on a layout page (NodeJS) with a dynamic link, which looks like this:
<a href="/shop/brand/{{brand_slug}}"></a>
The brand_slug is successfully retrieved from the SC, but the anchor link on the frontend looks like this and therefore doesn’t work:
/shop/brand/%7B%7Bbrand_slug_url%7D%7D

I tried removing the anchor image and inserting it again.
Checked if the routing script are on the layout page and if other routings work (which is the case).
Tried adding a click action (dyn. att.) to the image to use a Browser element’s GoTo function with the same url and that does work.

So it seems it’s just the anchor image link not getting published correctly on the frontend.

Any idea what could be causing this? Thanks for any help.

When using dynamic data you need to add the link using the dynamic attributes.

1 Like

Okay, didn’t know that, works now! :slight_smile:
Thanks for the quick reply!! :+1:

Any attribute like href, src etc. which requires dynamic data should be added through the dynamic attributes menu.

1 Like

Okay, got it :smiley::+1: