{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/react-native-windows/issues/1778","repository_url":"https://api.github.com/repos/Microsoft/react-native-windows","labels_url":"https://api.github.com/repos/Microsoft/react-native-windows/issues/1778/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/react-native-windows/issues/1778/comments","events_url":"https://api.github.com/repos/Microsoft/react-native-windows/issues/1778/events","html_url":"https://github.com/Microsoft/react-native-windows/pull/1778","id":315038075,"number":1778,"title":"RN WPF Webview: onNavigationStateChange is not triggered for redirect URLs","user":{"login":"piyush965","id":38461920,"avatar_url":"https://avatars3.githubusercontent.com/u/38461920?v=4","gravatar_id":"","url":"https://api.github.com/users/piyush965","html_url":"https://github.com/piyush965","followers_url":"https://api.github.com/users/piyush965/followers","following_url":"https://api.github.com/users/piyush965/following{/other_user}","gists_url":"https://api.github.com/users/piyush965/gists{/gist_id}","starred_url":"https://api.github.com/users/piyush965/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piyush965/subscriptions","organizations_url":"https://api.github.com/users/piyush965/orgs","repos_url":"https://api.github.com/users/piyush965/repos","events_url":"https://api.github.com/users/piyush965/events{/privacy}","received_events_url":"https://api.github.com/users/piyush965/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-17T12:31:10Z","updated_at":"2018-04-20T04:34:15Z","closed_at":"2018-04-18T19:31:40Z","author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/Microsoft/react-native-windows/pulls/1778","html_url":"https://github.com/Microsoft/react-native-windows/pull/1778","diff_url":"https://github.com/Microsoft/react-native-windows/pull/1778.diff","patch_url":"https://github.com/Microsoft/react-native-windows/pull/1778.patch"},"body":"**Issue description:**\r\nSteps to reproduce the problem:\r\n1. Load “http://google.com” in a Webview\r\n**Example:**\r\n<WebView\r\n        onNavigationStateChange={this.onNavigationStateChange}\r\n        source={{ uri: “http://google.com”}}\r\n  />\r\n\r\n2. Observe - **onNavigationStateChange** is not triggered for redirect URLs (only trigged for https://www.google.com with 204 response and not for any other intermediate redirects/(301,307) URLs)\r\n \r\nHere is the chrome browser Network data:\r\n![image](https://user-images.githubusercontent.com/38461920/38869556-b2e656e4-4268-11e8-86e6-0c1e60edddb6.png)\r\n\r\n**Expected behaviour:**\r\nI expect onNavigationStateChange trigged for all URL changes. It works this way in iOS and Android.\r\n \r\n**Root cause:**\r\nIn RN WPF WebBrowser native class implements only **Navigated** and **LoadCompleted** interfaces. Navigated is fired for navigated events, that means it is not fired for redirect URLs.\r\n \r\n**Proposed Solution:**\r\nReplace the Navigated to Navigating in ReactWebViewManager.cs class and it correctly detects the redirects URLs too.\r\n\r\nI have submitted the pull request with same proposal. Please review."},"comment":{"url":"https://api.github.com/repos/Microsoft/react-native-windows/issues/comments/382972751","html_url":"https://github.com/Microsoft/react-native-windows/pull/1778#issuecomment-382972751","issue_url":"https://api.github.com/repos/Microsoft/react-native-windows/issues/1778","id":382972751,"user":{"login":"piyush965","id":38461920,"avatar_url":"https://avatars3.githubusercontent.com/u/38461920?v=4","gravatar_id":"","url":"https://api.github.com/users/piyush965","html_url":"https://github.com/piyush965","followers_url":"https://api.github.com/users/piyush965/followers","following_url":"https://api.github.com/users/piyush965/following{/other_user}","gists_url":"https://api.github.com/users/piyush965/gists{/gist_id}","starred_url":"https://api.github.com/users/piyush965/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piyush965/subscriptions","organizations_url":"https://api.github.com/users/piyush965/orgs","repos_url":"https://api.github.com/users/piyush965/repos","events_url":"https://api.github.com/users/piyush965/events{/privacy}","received_events_url":"https://api.github.com/users/piyush965/received_events","type":"User","site_admin":false},"created_at":"2018-04-20T04:34:15Z","updated_at":"2018-04-20T04:34:15Z","author_association":"CONTRIBUTOR","body":"@rozele I haven't checked yet, let me confirm today."}}
{"actor":{"display_login":"piyush965"}}