{"action":"created","issue":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/2057","labels_url":"https://api.github.com/repos/Codeception/Codeception/issues/2057/labels{/name}","comments_url":"https://api.github.com/repos/Codeception/Codeception/issues/2057/comments","events_url":"https://api.github.com/repos/Codeception/Codeception/issues/2057/events","html_url":"https://github.com/Codeception/Codeception/issues/2057","id":88842279,"number":2057,"title":"Redirect URIs relative to the previous URI break","user":{"login":"firejdl","id":669777,"avatar_url":"https://avatars.githubusercontent.com/u/669777?v=3","gravatar_id":"","url":"https://api.github.com/users/firejdl","html_url":"https://github.com/firejdl","followers_url":"https://api.github.com/users/firejdl/followers","following_url":"https://api.github.com/users/firejdl/following{/other_user}","gists_url":"https://api.github.com/users/firejdl/gists{/gist_id}","starred_url":"https://api.github.com/users/firejdl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/firejdl/subscriptions","organizations_url":"https://api.github.com/users/firejdl/orgs","repos_url":"https://api.github.com/users/firejdl/repos","events_url":"https://api.github.com/users/firejdl/events{/privacy}","received_events_url":"https://api.github.com/users/firejdl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-06-16T21:14:34Z","updated_at":"2015-06-16T21:33:13Z","closed_at":null,"body":"According to [RFC 7231](https://tools.ietf.org/html/rfc7231#section-7.1.2), relative redirect URIs (e.g. not beginning with a /) should be \"computed by resolving it against the effective request URI.\"\r\n\r\n\"The [effective request URI](https://tools.ietf.org/html/rfc7230#section-5.5) is the same as the request URI in most cases.\" ([source](http://stackoverflow.com/a/25643550))\r\n\r\nIn other words, if a server returns a `Location` header containing `edit.php`, and the request URI was `/admin/index.php`, the final URI should be `www.domain.com/admin/edit.php`.\r\n\r\nWordPress uses these relative redirect URIs in some cases. When submitting the form to create a new user, you submit to `/wp-admin/user-new.php`, which redirects via the header: `Location:users.php?update=add&id=2`, which should send you to `/wp-admin/users.php?update=add&id=2`. With the current code, you get redirected to `/users.php?update=add&id=2`."},"comment":{"url":"https://api.github.com/repos/Codeception/Codeception/issues/comments/112575492","html_url":"https://github.com/Codeception/Codeception/issues/2057#issuecomment-112575492","issue_url":"https://api.github.com/repos/Codeception/Codeception/issues/2057","id":112575492,"user":{"login":"zbateson","id":8356974,"avatar_url":"https://avatars.githubusercontent.com/u/8356974?v=3","gravatar_id":"","url":"https://api.github.com/users/zbateson","html_url":"https://github.com/zbateson","followers_url":"https://api.github.com/users/zbateson/followers","following_url":"https://api.github.com/users/zbateson/following{/other_user}","gists_url":"https://api.github.com/users/zbateson/gists{/gist_id}","starred_url":"https://api.github.com/users/zbateson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zbateson/subscriptions","organizations_url":"https://api.github.com/users/zbateson/orgs","repos_url":"https://api.github.com/users/zbateson/repos","events_url":"https://api.github.com/users/zbateson/events{/privacy}","received_events_url":"https://api.github.com/users/zbateson/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T21:33:13Z","updated_at":"2015-06-16T21:33:13Z","body":"Yes, absolutely :smile: "}}