Fix random photo links to wrong page.
Add link anchor when link from random photo.