{"action":"created","issue":{"url":"https://api.github.com/repos/opensource-socialnetwork/opensource-socialnetwork/issues/158","labels_url":"https://api.github.com/repos/opensource-socialnetwork/opensource-socialnetwork/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/opensource-socialnetwork/opensource-socialnetwork/issues/158/comments","events_url":"https://api.github.com/repos/opensource-socialnetwork/opensource-socialnetwork/issues/158/events","html_url":"https://github.com/opensource-socialnetwork/opensource-socialnetwork/issues/158","id":53206977,"number":158,"title":"After login redirect user to referrer link?","user":{"login":"lianglee","id":805066,"avatar_url":"https://avatars.githubusercontent.com/u/805066?v=3","gravatar_id":"","url":"https://api.github.com/users/lianglee","html_url":"https://github.com/lianglee","followers_url":"https://api.github.com/users/lianglee/followers","following_url":"https://api.github.com/users/lianglee/following{/other_user}","gists_url":"https://api.github.com/users/lianglee/gists{/gist_id}","starred_url":"https://api.github.com/users/lianglee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lianglee/subscriptions","organizations_url":"https://api.github.com/users/lianglee/orgs","repos_url":"https://api.github.com/users/lianglee/repos","events_url":"https://api.github.com/users/lianglee/events{/privacy}","received_events_url":"https://api.github.com/users/lianglee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/opensource-socialnetwork/opensource-socialnetwork/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-31T22:45:41Z","updated_at":"2015-01-02T15:43:46Z","closed_at":null,"body":"I was browsing discussion community and found some question that wanted to answer it, i loggedin to community but after login ossn system takes me to home page instead of discussion page.  \r\n\r\nWhat you think? \r\n\r\n@githubertus , @sathish4fri "},"comment":{"url":"https://api.github.com/repos/opensource-socialnetwork/opensource-socialnetwork/issues/comments/68535560","html_url":"https://github.com/opensource-socialnetwork/opensource-socialnetwork/issues/158#issuecomment-68535560","issue_url":"https://api.github.com/repos/opensource-socialnetwork/opensource-socialnetwork/issues/158","id":68535560,"user":{"login":"githubertus","id":9904364,"avatar_url":"https://avatars.githubusercontent.com/u/9904364?v=3","gravatar_id":"","url":"https://api.github.com/users/githubertus","html_url":"https://github.com/githubertus","followers_url":"https://api.github.com/users/githubertus/followers","following_url":"https://api.github.com/users/githubertus/following{/other_user}","gists_url":"https://api.github.com/users/githubertus/gists{/gist_id}","starred_url":"https://api.github.com/users/githubertus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/githubertus/subscriptions","organizations_url":"https://api.github.com/users/githubertus/orgs","repos_url":"https://api.github.com/users/githubertus/repos","events_url":"https://api.github.com/users/githubertus/events{/privacy}","received_events_url":"https://api.github.com/users/githubertus/received_events","type":"User","site_admin":false},"created_at":"2015-01-02T15:43:46Z","updated_at":"2015-01-02T15:43:46Z","body":"Okay, I think I got it. :)\r\nIf my base url is \"mysite.com\", then depending on being logged in or not I would like to get\r\n- Logged off: mysite.com + community front page with ability to register\r\n- Logged in: mysite.com + community thread page\r\n\r\nSimply the same url, and I won't get a 404 error when visiting /home, but being logged off.\r\nAnother advantage: This solution is easier to integrate into existing websites. There a lot of sites with \"/home\" already in use for different content and you'll have to rename existing stuff first to make things fit together.\r\nIf ossn really needs that subdirectory, I'd suggest to use at least something more unpopular like \"/ossnhome\" or perhaps better \"/community\"."}}