{"action":"closed","issue":{"url":"https://api.github.com/repos/thoughtbot/clearance/issues/733","repository_url":"https://api.github.com/repos/thoughtbot/clearance","labels_url":"https://api.github.com/repos/thoughtbot/clearance/issues/733/labels{/name}","comments_url":"https://api.github.com/repos/thoughtbot/clearance/issues/733/comments","events_url":"https://api.github.com/repos/thoughtbot/clearance/issues/733/events","html_url":"https://github.com/thoughtbot/clearance/issues/733","id":201809661,"number":733,"title":"return_to loses anchor","user":{"login":"MSchmidt","id":38004,"avatar_url":"https://avatars.githubusercontent.com/u/38004?v=3","gravatar_id":"","url":"https://api.github.com/users/MSchmidt","html_url":"https://github.com/MSchmidt","followers_url":"https://api.github.com/users/MSchmidt/followers","following_url":"https://api.github.com/users/MSchmidt/following{/other_user}","gists_url":"https://api.github.com/users/MSchmidt/gists{/gist_id}","starred_url":"https://api.github.com/users/MSchmidt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSchmidt/subscriptions","organizations_url":"https://api.github.com/users/MSchmidt/orgs","repos_url":"https://api.github.com/users/MSchmidt/repos","events_url":"https://api.github.com/users/MSchmidt/events{/privacy}","received_events_url":"https://api.github.com/users/MSchmidt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-01-19T09:46:22Z","updated_at":"2017-01-19T13:17:16Z","closed_at":"2017-01-19T13:17:16Z","body":"I'm trying to redirect a user to a specific anchor after sign in by setting ``session['return_to']`` to something like ``/page#section``. The anchor gets dropped by this line though:\r\n\r\nhttps://github.com/thoughtbot/clearance/blob/d72696fc6d32cdee219e64d392141eb1cda1ab3b/lib/clearance/authorization.rb#L98\r\n```ruby\r\n\"#{uri.path}?#{uri.query}\".chomp('?')\r\n```"}}
{"actor":{"display_login":"derekprior"}}