Prevent angular from infinite redirects