{"action":"created","issue":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/13930","repository_url":"https://api.github.com/repos/twbs/bootstrap","labels_url":"https://api.github.com/repos/twbs/bootstrap/issues/13930/labels{/name}","comments_url":"https://api.github.com/repos/twbs/bootstrap/issues/13930/comments","events_url":"https://api.github.com/repos/twbs/bootstrap/issues/13930/events","html_url":"https://github.com/twbs/bootstrap/issues/13930","id":36571107,"number":13930,"title":"Modal won't close on location change in single-page apps.","user":{"login":"mezerny","id":5762590,"avatar_url":"https://avatars.githubusercontent.com/u/5762590?v=3","gravatar_id":"","url":"https://api.github.com/users/mezerny","html_url":"https://github.com/mezerny","followers_url":"https://api.github.com/users/mezerny/followers","following_url":"https://api.github.com/users/mezerny/following{/other_user}","gists_url":"https://api.github.com/users/mezerny/gists{/gist_id}","starred_url":"https://api.github.com/users/mezerny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mezerny/subscriptions","organizations_url":"https://api.github.com/users/mezerny/orgs","repos_url":"https://api.github.com/users/mezerny/repos","events_url":"https://api.github.com/users/mezerny/events{/privacy}","received_events_url":"https://api.github.com/users/mezerny/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/twbs/bootstrap/labels/js","name":"js","color":"ffc40d"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":16,"created_at":"2014-06-26T12:30:55Z","updated_at":"2016-07-21T11:35:23Z","closed_at":"2014-07-06T07:03:51Z","body":"Steps to reproduce:\r\n1) Go to http://getbootstrap.com/javascript/#modals-sizes\r\n2) Click on any modal example button (for example, Large Modal)\r\n3) Change browser's URL to http://getbootstrap.com/javascript/#tabs wile modal is open and hit Enter\r\n\r\nActual result:\r\nPage is rendered with desired location, modal is still open.\r\n\r\nExpected result:\r\nModal is dismissed, page is rendered with desired location\r\n\r\nIn example above we can see the same page, but with one-page app frameworks, like AngularJS, these location change could lead to complete page rerender.\r\nReal-life use case is when user tries to perform some action inside modal without appropriate rights, it should be redirected to login page, but in that case, modal stays open."},"comment":{"url":"https://api.github.com/repos/twbs/bootstrap/issues/comments/234228771","html_url":"https://github.com/twbs/bootstrap/issues/13930#issuecomment-234228771","issue_url":"https://api.github.com/repos/twbs/bootstrap/issues/13930","id":234228771,"user":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"created_at":"2016-07-21T11:35:23Z","updated_at":"2016-07-21T11:35:23Z","body":"For anyone using AngularJS integration I've posted an SO answer describing on how to close all opened modals on route change here: http://stackoverflow.com/a/23766070\r\n\r\n"}}
{"actor":{"display_login":"pkozlowski-opensource"}}