Fix for gallery URLs.