Fix redirection to studio with ssl