fixed thumb link issue

The _browse and _thumbnails_html.php files didn’t take care of the
different type (object, entity, collection etc..). Now it does