5

We have an image in Sitecore that needs to be rendered with a link wrapping it. When the HTML renders the hash parameter is being added twice so we're getting errors in the Sitecore log about the value not matching. Has anyone seen this issue or gotten a fix for it? When rendered outside the link it renders properly, so my thought is the image is running through the pipeline twice.

Link

<a href="http://www.facebook.com/"><img src="/-/media/social/icon-facebook.svg?la=en&amp;hash=3B0EC93CDA5F46F4775B87A46B833E56E6981CB6&amp;hash=3B0EC93CDA5F46F4775B87A46B833E56E6981CB6" alt="Facebook" /></a>

View

@Html.Sitecore().Field("Facebook Link", new {text = Html.Sitecore().Field("Facebook")})

Sitecore 8.2 Update 5

Thanks

  • have you tried to generate the value first and then use it in text setter? – Marek Musielak Dec 30 '17 at 17:50
  • I have just tried that and am getting the same output. I've also tried disabling all the custom pipelines just to make sure nothing there was doing anything. – Lyle Jordan Jan 2 '18 at 17:57
  • Have you checked for any parameters on the image itself on the media library? Does it happen with every image or just this one? – Diego Jan 3 '18 at 0:44
  • It happens with other images as well. I've just been able to reproduce the issue with a clean Sitecore instance and have filed a ticket with support. – Lyle Jordan Jan 3 '18 at 1:01
3

Sitecore support was able to replicate the issue and have provided a fix. Ask for support package 97023 if you're having this issue.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.