remove theme specific code from getGalleryLinkURL()