payload: {"action":"created","issue":{"url":"https://api.github.com/repos/slimphp/Slim/issues/2512","repository_url":"https://api.github.com/repos/slimphp/Slim","labels_url":"https://api.github.com/repos/slimphp/Slim/issues/2512/labels{/name}","comments_url":"https://api.github.com/repos/slimphp/Slim/issues/2512/comments","events_url":"https://api.github.com/repos/slimphp/Slim/issues/2512/events","html_url":"https://github.com/slimphp/Slim/issues/2512","id":365782292,"node_id":"MDU6SXNzdWUzNjU3ODIyOTI=","number":2512,"title":"4.x - Base path handling","user":{"login":"akrabat","id":33135,"node_id":"MDQ6VXNlcjMzMTM1","avatar_url":"https://avatars2.githubusercontent.com/u/33135?v=4","gravatar_id":"","url":"https://api.github.com/users/akrabat","html_url":"https://github.com/akrabat","followers_url":"https://api.github.com/users/akrabat/followers","following_url":"https://api.github.com/users/akrabat/following{/other_user}","gists_url":"https://api.github.com/users/akrabat/gists{/gist_id}","starred_url":"https://api.github.com/users/akrabat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akrabat/subscriptions","organizations_url":"https://api.github.com/users/akrabat/orgs","repos_url":"https://api.github.com/users/akrabat/repos","events_url":"https://api.github.com/users/akrabat/events{/privacy}","received_events_url":"https://api.github.com/users/akrabat/received_events","type":"User","site_admin":false},"labels":[{"id":372378249,"node_id":"MDU6TGFiZWwzNzIzNzgyNDk=","url":"https://api.github.com/repos/slimphp/Slim/labels/Slim%204","name":"Slim 4","color":"fbca04","default":false},{"id":55368,"node_id":"MDU6TGFiZWw1NTM2OA==","url":"https://api.github.com/repos/slimphp/Slim/labels/discussion","name":"discussion","color":"b3b3b3","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":25,"created_at":"2018-10-02T08:01:50Z","updated_at":"2019-09-23T11:19:00Z","closed_at":null,"author_association":"MEMBER","body":"We need to have base path handling working consistently without confusion in Slim 4.\r\n\r\n\r\nSee also: https://github.com/slimphp/Slim/issues/1964"},"comment":{"url":"https://api.github.com/repos/slimphp/Slim/issues/comments/534056851","html_url":"https://github.com/slimphp/Slim/issues/2512#issuecomment-534056851","issue_url":"https://api.github.com/repos/slimphp/Slim/issues/2512","id":534056851,"node_id":"MDEyOklzc3VlQ29tbWVudDUzNDA1Njg1MQ==","user":{"login":"piotr-cz","id":612953,"node_id":"MDQ6VXNlcjYxMjk1Mw==","avatar_url":"https://avatars2.githubusercontent.com/u/612953?v=4","gravatar_id":"","url":"https://api.github.com/users/piotr-cz","html_url":"https://github.com/piotr-cz","followers_url":"https://api.github.com/users/piotr-cz/followers","following_url":"https://api.github.com/users/piotr-cz/following{/other_user}","gists_url":"https://api.github.com/users/piotr-cz/gists{/gist_id}","starred_url":"https://api.github.com/users/piotr-cz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piotr-cz/subscriptions","organizations_url":"https://api.github.com/users/piotr-cz/orgs","repos_url":"https://api.github.com/users/piotr-cz/repos","events_url":"https://api.github.com/users/piotr-cz/events{/privacy}","received_events_url":"https://api.github.com/users/piotr-cz/received_events","type":"User","site_admin":false},"created_at":"2019-09-23T11:19:00Z","updated_at":"2019-09-23T11:19:00Z","author_association":"NONE","body":"- When using `$app->setBasePath('/public')` it breaks `RouteParser::relativeUrlFor` output:\r\n  ```\r\n  echo $routerParser->urlFor('about');\r\n  /public/about\r\n  ```\r\n\r\n  ```\r\n  echo $routerParser->relativeUrlFor('about');\r\n  /about <- expected\r\n  /public/about <- output\r\n  ```\r\n\r\n- When using `$app->getRouteCollector()->setBasePath('/public')`, RouteParser produces corrent urls for both urlFor and relativeUrlFor methods but breaks current path detection"}}
other: {"actor":{"display_login":"piotr-cz"}}