{"action":"opened","issue":{"url":"https://api.github.com/repos/nwjs/nw.js/issues/4059","labels_url":"https://api.github.com/repos/nwjs/nw.js/issues/4059/labels{/name}","comments_url":"https://api.github.com/repos/nwjs/nw.js/issues/4059/comments","events_url":"https://api.github.com/repos/nwjs/nw.js/issues/4059/events","html_url":"https://github.com/nwjs/nw.js/issues/4059","id":121496145,"number":4059,"title":"JS redirecting breaks functionality","user":{"login":"Laekh","id":13188637,"avatar_url":"https://avatars.githubusercontent.com/u/13188637?v=3","gravatar_id":"","url":"https://api.github.com/users/Laekh","html_url":"https://github.com/Laekh","followers_url":"https://api.github.com/users/Laekh/followers","following_url":"https://api.github.com/users/Laekh/following{/other_user}","gists_url":"https://api.github.com/users/Laekh/gists{/gist_id}","starred_url":"https://api.github.com/users/Laekh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Laekh/subscriptions","organizations_url":"https://api.github.com/users/Laekh/orgs","repos_url":"https://api.github.com/users/Laekh/repos","events_url":"https://api.github.com/users/Laekh/events{/privacy}","received_events_url":"https://api.github.com/users/Laekh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-10T14:24:13Z","updated_at":"2015-12-10T14:24:13Z","closed_at":null,"body":"Hey,\r\n\r\nAfter a redirect, a lot of things break for me.\r\nLots of investigating later, my conclusion is that elements are not the same after a redirect.\r\n(Using the jQuery node module)\r\n\r\nWhen the first page is loaded by nw js,\r\n```javascript\r\nconsole.log($('#main'));\r\n```\r\nshows\r\n```javascript\r\njQuery.fn.init[1]\r\n   0: main#main\r\n   context: document\r\n   length: 1\r\n   selector: \"#main\"\r\n   __proto__: jQuery[0]\r\n```\r\n\r\nWhich is the intended functionality.\r\nAfter a page is redirected (using both jQuery, and vanilla JavaScript)\r\nThe same exact code will output\r\n```javascript\r\n[main#main, context: document, selector: \"#main\", jquery: \"2.1.4\", constructor: function, toArray: function…]\r\n   0: main#main\r\n   context: document\r\n   length: 1\r\n   selector: \"#main\"\r\n   __proto__: jQuery[0]\r\n```\r\n\r\nThis seems to break any jQuery selectors and events.\r\nIs this a nw js issue or something I could fix myself?"}}