{"action":"created","issue":{"url":"https://api.github.com/repos/nst/STTwitter/issues/197","labels_url":"https://api.github.com/repos/nst/STTwitter/issues/197/labels{/name}","comments_url":"https://api.github.com/repos/nst/STTwitter/issues/197/comments","events_url":"https://api.github.com/repos/nst/STTwitter/issues/197/events","html_url":"https://github.com/nst/STTwitter/issues/197","id":89260105,"number":197,"title":"Wrong redirect URL when providing wrong credentials first and then log in correctly","user":{"login":"mkoorn","id":1893301,"avatar_url":"https://avatars.githubusercontent.com/u/1893301?v=3","gravatar_id":"","url":"https://api.github.com/users/mkoorn","html_url":"https://github.com/mkoorn","followers_url":"https://api.github.com/users/mkoorn/followers","following_url":"https://api.github.com/users/mkoorn/following{/other_user}","gists_url":"https://api.github.com/users/mkoorn/gists{/gist_id}","starred_url":"https://api.github.com/users/mkoorn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mkoorn/subscriptions","organizations_url":"https://api.github.com/users/mkoorn/orgs","repos_url":"https://api.github.com/users/mkoorn/repos","events_url":"https://api.github.com/users/mkoorn/events{/privacy}","received_events_url":"https://api.github.com/users/mkoorn/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nst/STTwitter/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"nst","id":51388,"avatar_url":"https://avatars.githubusercontent.com/u/51388?v=3","gravatar_id":"","url":"https://api.github.com/users/nst","html_url":"https://github.com/nst","followers_url":"https://api.github.com/users/nst/followers","following_url":"https://api.github.com/users/nst/following{/other_user}","gists_url":"https://api.github.com/users/nst/gists{/gist_id}","starred_url":"https://api.github.com/users/nst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nst/subscriptions","organizations_url":"https://api.github.com/users/nst/orgs","repos_url":"https://api.github.com/users/nst/repos","events_url":"https://api.github.com/users/nst/events{/privacy}","received_events_url":"https://api.github.com/users/nst/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-06-18T10:52:59Z","updated_at":"2015-09-29T19:57:55Z","closed_at":null,"body":"Steps to reproduce:\r\n\r\n1. run STTwitterDemoiOS\r\n2. deselect open safari\r\n3. push \"login on the web\" button\r\n4. enter wrong login credentials -> app redirects to login\r\n5. enter correct credentials -> app redirects to \"Sorry, that page doesn't exist!\"\r\n\r\nI can see that the webview url is:\r\nhttps://mobile.twitter.com/login/error?redirect_after_login=https%3A%2F%2Fapi.twitter.com%2Foauth%2Fauthorize%3Foauth_token%.....\r\n\r\nso after login the page tries to load:\r\nhttps://mobile.twitter.com/https://api.twitter.com/oauth/authorize?oauth_token......\r\n\r\nAs temp fix I recreate the correct url in shouldStartLoadWithRequest by removing the wrong \"https://mobile.twitter.com/\" prefix and continue to load the new url.\r\n\r\nLooks like a twitter api issue or is there something to be done within STTwitter?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/nst/STTwitter/issues/comments/144171234","html_url":"https://github.com/nst/STTwitter/issues/197#issuecomment-144171234","issue_url":"https://api.github.com/repos/nst/STTwitter/issues/197","id":144171234,"user":{"login":"nst","id":51388,"avatar_url":"https://avatars.githubusercontent.com/u/51388?v=3","gravatar_id":"","url":"https://api.github.com/users/nst","html_url":"https://github.com/nst","followers_url":"https://api.github.com/users/nst/followers","following_url":"https://api.github.com/users/nst/following{/other_user}","gists_url":"https://api.github.com/users/nst/gists{/gist_id}","starred_url":"https://api.github.com/users/nst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nst/subscriptions","organizations_url":"https://api.github.com/users/nst/orgs","repos_url":"https://api.github.com/users/nst/repos","events_url":"https://api.github.com/users/nst/events{/privacy}","received_events_url":"https://api.github.com/users/nst/received_events","type":"User","site_admin":false},"created_at":"2015-09-29T19:57:55Z","updated_at":"2015-09-29T19:57:55Z","body":"Maybe it's related to iOS 9 changes:\r\n\r\nhttp://awkwardhare.com/post/121196006730/quick-take-on-ios-9-url-scheme-changes\r\n\r\nLet me investigate and I'll let you know ASAP."}}