{"action":"created","issue":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/7205","labels_url":"https://api.github.com/repos/cakephp/cakephp/issues/7205/labels{/name}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/7205/comments","events_url":"https://api.github.com/repos/cakephp/cakephp/issues/7205/events","html_url":"https://github.com/cakephp/cakephp/issues/7205","id":99902383,"number":7205,"title":"3.x - AuthComponent - _unathorized() - Redirect problem when user has no access to referer()","user":{"login":"JustDoItSascha","id":8389022,"avatar_url":"https://avatars.githubusercontent.com/u/8389022?v=3","gravatar_id":"","url":"https://api.github.com/users/JustDoItSascha","html_url":"https://github.com/JustDoItSascha","followers_url":"https://api.github.com/users/JustDoItSascha/followers","following_url":"https://api.github.com/users/JustDoItSascha/following{/other_user}","gists_url":"https://api.github.com/users/JustDoItSascha/gists{/gist_id}","starred_url":"https://api.github.com/users/JustDoItSascha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JustDoItSascha/subscriptions","organizations_url":"https://api.github.com/users/JustDoItSascha/orgs","repos_url":"https://api.github.com/users/JustDoItSascha/repos","events_url":"https://api.github.com/users/JustDoItSascha/events{/privacy}","received_events_url":"https://api.github.com/users/JustDoItSascha/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cakephp/cakephp/labels/auth","name":"auth","color":"ffffff"},{"url":"https://api.github.com/repos/cakephp/cakephp/labels/On%20hold","name":"On hold","color":"eb6420"}],"state":"open","locked":false,"assignee":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/55","html_url":"https://github.com/cakephp/cakephp/milestones/3.0.12","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/55/labels","id":1243170,"number":55,"title":"3.0.12","description":"Bugfixes and enhancements for 3.0.x","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":14,"state":"open","created_at":"2015-08-06T02:07:36Z","updated_at":"2015-08-10T07:57:46Z","due_on":"2015-08-26T04:00:00Z","closed_at":null},"comments":3,"created_at":"2015-08-09T14:46:48Z","updated_at":"2015-08-10T18:08:09Z","closed_at":null,"body":"I'm struggling with a problem in cake 3 and I don't know if it's my fault or a bug. When I have two users with different authorization configs  and User A logs out and User B logs in right after, but has no access to the referer location, the redirect is not correct.\r\n\r\nBecause the redirecting method tries to access the location from loginRedirect, but the url which is generated is not correct, because my app lies in a subfolder and the name of the subfolder is used two times, like localhost/appdir/appdir/controller/action/home."},"comment":{"url":"https://api.github.com/repos/cakephp/cakephp/issues/comments/129552533","html_url":"https://github.com/cakephp/cakephp/issues/7205#issuecomment-129552533","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/7205","id":129552533,"user":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T18:08:09Z","updated_at":"2015-08-10T18:08:09Z","body":"Thanks, I'll try reproducing and seeing if the change you made has any other side-effects."}}