{"action":"created","issue":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/111","labels_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/111/comments","events_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/111/events","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-js/issues/111","id":69684392,"number":111,"title":"redirecting to a protected resource throws route change error","user":{"login":"bigerock","id":4642901,"avatar_url":"https://avatars.githubusercontent.com/u/4642901?v=3","gravatar_id":"","url":"https://api.github.com/users/bigerock","html_url":"https://github.com/bigerock","followers_url":"https://api.github.com/users/bigerock/followers","following_url":"https://api.github.com/users/bigerock/following{/other_user}","gists_url":"https://api.github.com/users/bigerock/gists{/gist_id}","starred_url":"https://api.github.com/users/bigerock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigerock/subscriptions","organizations_url":"https://api.github.com/users/bigerock/orgs","repos_url":"https://api.github.com/users/bigerock/repos","events_url":"https://api.github.com/users/bigerock/events{/privacy}","received_events_url":"https://api.github.com/users/bigerock/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-20T21:24:12Z","updated_at":"2015-04-30T19:02:31Z","closed_at":null,"body":"when you use requireADLogin: true on a route, and redirect to it while not authenticated, it is throwing a route change error and then proceeds to properly redirect to the microsoft login page.\r\n\r\nalthough it is ultimately working, is is throwing the error. it's as if it is not rejecting the route properly. is there anything i can do to prevent this error?"},"comment":{"url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/comments/97928382","html_url":"https://github.com/AzureAD/azure-activedirectory-library-for-js/issues/111#issuecomment-97928382","issue_url":"https://api.github.com/repos/AzureAD/azure-activedirectory-library-for-js/issues/111","id":97928382,"user":{"login":"bigerock","id":4642901,"avatar_url":"https://avatars.githubusercontent.com/u/4642901?v=3","gravatar_id":"","url":"https://api.github.com/users/bigerock","html_url":"https://github.com/bigerock","followers_url":"https://api.github.com/users/bigerock/followers","following_url":"https://api.github.com/users/bigerock/following{/other_user}","gists_url":"https://api.github.com/users/bigerock/gists{/gist_id}","starred_url":"https://api.github.com/users/bigerock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bigerock/subscriptions","organizations_url":"https://api.github.com/users/bigerock/orgs","repos_url":"https://api.github.com/users/bigerock/repos","events_url":"https://api.github.com/users/bigerock/events{/privacy}","received_events_url":"https://api.github.com/users/bigerock/received_events","type":"User","site_admin":false},"created_at":"2015-04-30T19:02:31Z","updated_at":"2015-04-30T19:02:31Z","body":"correct, but this throws a script error before performing the redirect. is there any way to catch or suppress this error?"}}