Fixed the redirect url for galleries