#1288 Fix link code for thumbnails