Fix getLink with thumbnail support enabled