(Issue #3799) ensure data-id attribute for thumbnails is an id and not a URL