Variable interpolation in href link not working

Wappler v6.8.0
AppConnect 2

Variable interpolation in href link is not working. This was constructed using the Wappler editor, it wasn't constructed by hand:

<a internal="true" href="/phone-number/{{phone_number}}">

How about

<a internal="true" href="'/phone-number/'+{{phone_number}}">

Hi Notum,

Thanks, I haven't tested your code but I believe that would require the usage of dmx-bind:href due to the expression syntax, which also comes with another bug that I've just opened a bug report...

You should be using Dynamic Attributes > Link when using dynamic data.
The screenshot you show is for standard static links.

Any attribute requiring dynamic data, should be added through dynamic attributes.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.