Fix oauth controller redirect to back end