Links to file entity

Patch fixes so one can link directly to file entity