fix redirection based on controls context