{"action":"created","issue":{"url":"https://api.github.com/repos/purdue-epics-ims/boilerconnect/issues/12","labels_url":"https://api.github.com/repos/purdue-epics-ims/boilerconnect/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/purdue-epics-ims/boilerconnect/issues/12/comments","events_url":"https://api.github.com/repos/purdue-epics-ims/boilerconnect/issues/12/events","html_url":"https://github.com/purdue-epics-ims/boilerconnect/issues/12","id":60261037,"number":12,"title":"Login should redirect to previous page","user":{"login":"Evidlo","id":5455841,"avatar_url":"https://avatars.githubusercontent.com/u/5455841?v=3","gravatar_id":"","url":"https://api.github.com/users/Evidlo","html_url":"https://github.com/Evidlo","followers_url":"https://api.github.com/users/Evidlo/followers","following_url":"https://api.github.com/users/Evidlo/following{/other_user}","gists_url":"https://api.github.com/users/Evidlo/gists{/gist_id}","starred_url":"https://api.github.com/users/Evidlo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Evidlo/subscriptions","organizations_url":"https://api.github.com/users/Evidlo/orgs","repos_url":"https://api.github.com/users/Evidlo/repos","events_url":"https://api.github.com/users/Evidlo/events{/privacy}","received_events_url":"https://api.github.com/users/Evidlo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/purdue-epics-ims/boilerconnect/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":{"login":"matthewchiou","id":6908866,"avatar_url":"https://avatars.githubusercontent.com/u/6908866?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewchiou","html_url":"https://github.com/matthewchiou","followers_url":"https://api.github.com/users/matthewchiou/followers","following_url":"https://api.github.com/users/matthewchiou/following{/other_user}","gists_url":"https://api.github.com/users/matthewchiou/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewchiou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewchiou/subscriptions","organizations_url":"https://api.github.com/users/matthewchiou/orgs","repos_url":"https://api.github.com/users/matthewchiou/repos","events_url":"https://api.github.com/users/matthewchiou/events{/privacy}","received_events_url":"https://api.github.com/users/matthewchiou/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-03-08T15:21:41Z","updated_at":"2015-03-09T07:57:12Z","closed_at":null,"body":"Currently after you Login, the website redirects you to the front page.  This will be annoying when someone has to rebrowse to whatever page they were looking at before.\r\n\r\nThis can be easily fixed by modifying this line in the login form(already there)\r\n    `<input type=\"hidden\" name=\"next\" value=\"\">`\r\n\r\nWhatever is in `value` is where django will redirect the user upon hitting the submit button.  Find a way to set this to the user's previous page."},"comment":{"url":"https://api.github.com/repos/purdue-epics-ims/boilerconnect/issues/comments/77812660","html_url":"https://github.com/purdue-epics-ims/boilerconnect/issues/12#issuecomment-77812660","issue_url":"https://api.github.com/repos/purdue-epics-ims/boilerconnect/issues/12","id":77812660,"user":{"login":"matthewchiou","id":6908866,"avatar_url":"https://avatars.githubusercontent.com/u/6908866?v=3","gravatar_id":"","url":"https://api.github.com/users/matthewchiou","html_url":"https://github.com/matthewchiou","followers_url":"https://api.github.com/users/matthewchiou/followers","following_url":"https://api.github.com/users/matthewchiou/following{/other_user}","gists_url":"https://api.github.com/users/matthewchiou/gists{/gist_id}","starred_url":"https://api.github.com/users/matthewchiou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthewchiou/subscriptions","organizations_url":"https://api.github.com/users/matthewchiou/orgs","repos_url":"https://api.github.com/users/matthewchiou/repos","events_url":"https://api.github.com/users/matthewchiou/events{/privacy}","received_events_url":"https://api.github.com/users/matthewchiou/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T07:57:12Z","updated_at":"2015-03-09T07:57:12Z","body":"I did it with http_referer, and it worked. However, there was an underlying problem. If I typed my password wrong for the first time, then after I login I would be redirected to login page again. Same problem happened when I log out then log back in. This need to be fixed."}}