diff --git a/static/js/relearn.js b/static/js/relearn.js
index 7362f91873..599c0e6b44 100644
--- a/static/js/relearn.js
+++ b/static/js/relearn.js
@@ -148,7 +148,8 @@ images.wrap(function(){
// IF featherlight is false, do not use feather light
if (f != 'false') {
if (!image.parent("a").length) {
- return "";
+ var html = $( "" ).attr("href", image[0].src).attr("data-featherlight", "image").get(0).outerHTML;
+ return html;
}
}
});