Fix links in gallery.