{"action":"opened","issue":{"url":"https://api.github.com/repos/universityofcalifornia/NeXt/issues/336","labels_url":"https://api.github.com/repos/universityofcalifornia/NeXt/issues/336/labels{/name}","comments_url":"https://api.github.com/repos/universityofcalifornia/NeXt/issues/336/comments","events_url":"https://api.github.com/repos/universityofcalifornia/NeXt/issues/336/events","html_url":"https://github.com/universityofcalifornia/NeXt/issues/336","id":122577062,"number":336,"title":"redirect to current page after login","user":{"login":"joshuaselsky","id":238878,"avatar_url":"https://avatars.githubusercontent.com/u/238878?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuaselsky","html_url":"https://github.com/joshuaselsky","followers_url":"https://api.github.com/users/joshuaselsky/followers","following_url":"https://api.github.com/users/joshuaselsky/following{/other_user}","gists_url":"https://api.github.com/users/joshuaselsky/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuaselsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuaselsky/subscriptions","organizations_url":"https://api.github.com/users/joshuaselsky/orgs","repos_url":"https://api.github.com/users/joshuaselsky/repos","events_url":"https://api.github.com/users/joshuaselsky/events{/privacy}","received_events_url":"https://api.github.com/users/joshuaselsky/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/universityofcalifornia/NeXt/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/universityofcalifornia/NeXt/milestones/15","html_url":"https://github.com/universityofcalifornia/NeXt/milestones/1.1.10","labels_url":"https://api.github.com/repos/universityofcalifornia/NeXt/milestones/15/labels","id":1462371,"number":15,"title":"1.1.10","description":"1.1.10","creator":{"login":"joshuaselsky","id":238878,"avatar_url":"https://avatars.githubusercontent.com/u/238878?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuaselsky","html_url":"https://github.com/joshuaselsky","followers_url":"https://api.github.com/users/joshuaselsky/followers","following_url":"https://api.github.com/users/joshuaselsky/following{/other_user}","gists_url":"https://api.github.com/users/joshuaselsky/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuaselsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuaselsky/subscriptions","organizations_url":"https://api.github.com/users/joshuaselsky/orgs","repos_url":"https://api.github.com/users/joshuaselsky/repos","events_url":"https://api.github.com/users/joshuaselsky/events{/privacy}","received_events_url":"https://api.github.com/users/joshuaselsky/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":0,"state":"open","created_at":"2015-12-15T23:55:18Z","updated_at":"2015-12-16T18:55:55Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-12-16T18:55:55Z","updated_at":"2015-12-16T18:55:55Z","closed_at":null,"body":"If a user tries to access a page that is blocked by login, they should be redirected to that page after a successful login. There is an existing implementation of this in [application_controller.rb](https://github.com/universityofcalifornia/NeXt/blob/master/app/controllers/application_controller.rb#L16) that appears not to work. The existing redirect method is used by the code fixed as part of #313."}}