Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

The 1st edition of the Target Community Lens newsletter is out now! Click to the right to find all the latest updates

Target Images Not Loading Over HTTPS


Level 1

We're moving our website to https://. Images within Target tests are not loading because $e.thumbnailUrl is rendering the URL as http:// instead of https://.

Has anyone encountered this issue?


#foreach($e in $entities) 

#if($ != "" && $count < $entities.size() && $count <=30)


     <a class="productBlock" href="$e.pageUrl?icid=ChrLPGiftRecsMonogrammed"> <img title="$" alt="$" src="$e.thumbnailUrl"></a>


#set($count = $count + 1)



3 Replies



Hi there and thanks for your question! You can pass in the thumbnail URL as a relative URL instead of an as absolute URL - this means that the "https" part is not included in the URL. A relative URL is relative to the page you are on, versus a full URL link. If you can't change the code on your page, then another option is to swap out "http" with "https" in javascript in the Recommendations design. Hope this helps!


Level 1

Do you know how to output the Target variable ($e.thumbnailUrl) as a relative URL?



You might want to update your implementation to send us relative URLs in the future (it's easier that way), but in the meantime, you can always write javascript in the Recommendations Design to strip the absolute part of the URL.

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now