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
BedrockMission!

Learn More

View all

Sign in to view all badges

Target Images Not Loading Over HTTPS

Avatar

Avatar
Boost 1
Level 1
jimc30192438
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
jimc30192438
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
jimc30192438
Level 1

04-12-2017

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?

#set($count=1)

#foreach($e in $entities) 

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

<li>

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

</li>

#set($count = $count + 1)

#end

#end

Replies

Avatar

Avatar
Validate 250
Employee
Amelia_Waliany
Employee

Likes

183 likes

Total Posts

440 posts

Correct Reply

72 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile

Avatar
Validate 250
Employee
Amelia_Waliany
Employee

Likes

183 likes

Total Posts

440 posts

Correct Reply

72 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile
Amelia_Waliany
Employee

18-12-2017

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!

Avatar

Avatar
Boost 1
Level 1
jimc30192438
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
jimc30192438
Level 1

Like

1 like

Total Posts

2 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
jimc30192438
Level 1

18-12-2017

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

Avatar

Avatar
Validate 250
Employee
Amelia_Waliany
Employee

Likes

183 likes

Total Posts

440 posts

Correct Reply

72 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile

Avatar
Validate 250
Employee
Amelia_Waliany
Employee

Likes

183 likes

Total Posts

440 posts

Correct Reply

72 solutions
Top badges earned
Validate 250
Validate 100
Validate 50
Validate 25
Validate 10
View profile
Amelia_Waliany
Employee

18-12-2017

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.