CartoDB/cartodb

Image shows in info window in when editing map but not in public version if any custom code is added

mrjohnc opened this issue · 2 comments

Context

I've added an image to the header of the info window, it fetches individual images from Wikimedia Commons, however the image only appear when I'm editing the map, not in the publicly available version

https://mrjohncummings.carto.com/viz/82360754-cd77-4fa3-8a53-52b11827df05/public_map

Steps to Reproduce

Please break down here below all the needed steps to reproduce the issue

  1. Add image to info window header on map
    Screenshot 2020-07-09 at 18 33 41

  2. Look at public version of map (no image)
    Screenshot 2020-07-09 at 18 33 53

Current Result

Please describe here below the current result you got

In the public version of the map the image does no appear in the info window

Expected result

Please describe here below what should be the expected behaviour

The image should appear like it does on the map when I'm editing it

Browser and version

What internet browser (Chrome, Firefox, etc) and version was you using and version
Chrome Version 83.0.4103.119

.carto file

Additional info

It seems like adding any custom code breaks the header image for the public version of the map

Just to clarify, making any changes at all to the HTML of the Info Window causes the issue described.
Even if you undo the change and return it to the default HTML for the "image header" layout, the problem persists.
To get back to a working image header, you need to click "toggle fields and titles" to clear all the custom HTML, then re-select the "image header" layout from the dropdown.