Skip to main content
Solved

Update Property Link not working when used in images

  • January 27, 2023
  • 2 replies
  • 157 views

Forum|alt.badge.img+5

Hi,
 

The update_property_link works just fine when I use it to link texts,

but I cannot use it as the link of an image. Let me explain:

 

The URL works when used in text.

​​​

But when used in an image, I get a 400 Bad Request error.

 

 

 

Klaviyo’s message when I am in preview while hyperlinking images with the update_property_link.

 


Any ideas on how to solve that?

Thanks,

Best answer by retention

Hi @Stamos, welcome to the community!


If you are getting “invalid tags/variables” - there’s probably something slightly wrong with the code.  Double check for quotation marks, spacing, open and end tags {% %}.  Try testing the link on its own and Copy and Pasting it into the Image URL link field. Or, copy/paste it here and we can take a look at it here.

Here’s also a few other troubleshooting ideas from other threads:

Hope this helps!

View original
Did this topic or the replies in the thread help you find an answer to your question?

2 replies

retention
Partner - Platinum
Forum|alt.badge.img+62
  • 2025 Champion
  • 944 replies
  • Answer
  • January 27, 2023

Hi @Stamos, welcome to the community!


If you are getting “invalid tags/variables” - there’s probably something slightly wrong with the code.  Double check for quotation marks, spacing, open and end tags {% %}.  Try testing the link on its own and Copy and Pasting it into the Image URL link field. Or, copy/paste it here and we can take a look at it here.

Here’s also a few other troubleshooting ideas from other threads:

Hope this helps!


Forum|alt.badge.img+5
  • Author
  • Contributor I
  • 2 replies
  • January 30, 2023

Thank you @retention for your reply. 
Links are working now! For anyone interested if must have been an issue of the quotation marks:

Code that doesn’t work:
{% update_property_link ‘Example_Interest’ ‘true’ ‘https://website.com/example’ %}

Code that works:
{% update_property_link 'Example_Interest' 'true' 'https://website.com/example' %}