{"action":"closed","issue":{"url":"https://api.github.com/repos/flarum/core/issues/696","labels_url":"https://api.github.com/repos/flarum/core/issues/696/labels{/name}","comments_url":"https://api.github.com/repos/flarum/core/issues/696/comments","events_url":"https://api.github.com/repos/flarum/core/issues/696/events","html_url":"https://github.com/flarum/core/issues/696","id":124188135,"number":696,"title":"UrlGenerator without prefix","user":{"login":"LzIManD","id":10061227,"avatar_url":"https://avatars.githubusercontent.com/u/10061227?v=3","gravatar_id":"","url":"https://api.github.com/users/LzIManD","html_url":"https://github.com/LzIManD","followers_url":"https://api.github.com/users/LzIManD/followers","following_url":"https://api.github.com/users/LzIManD/following{/other_user}","gists_url":"https://api.github.com/users/LzIManD/gists{/gist_id}","starred_url":"https://api.github.com/users/LzIManD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LzIManD/subscriptions","organizations_url":"https://api.github.com/users/LzIManD/orgs","repos_url":"https://api.github.com/users/LzIManD/repos","events_url":"https://api.github.com/users/LzIManD/events{/privacy}","received_events_url":"https://api.github.com/users/LzIManD/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/flarum/core/labels/API","name":"API","color":"5319e7"},{"url":"https://api.github.com/repos/flarum/core/labels/Bug","name":"Bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/flarum/core/milestones/4","html_url":"https://github.com/flarum/core/milestones/0.1.0-beta.5","labels_url":"https://api.github.com/repos/flarum/core/milestones/4/labels","id":1289532,"number":4,"title":"0.1.0-beta.5","description":"Goals for this release:\r\n- Improved text editor with formatting buttons and full-screen preview\r\n- Improved push support\r\n- Bug fixes","creator":{"login":"tobscure","id":128862,"avatar_url":"https://avatars.githubusercontent.com/u/128862?v=3","gravatar_id":"","url":"https://api.github.com/users/tobscure","html_url":"https://github.com/tobscure","followers_url":"https://api.github.com/users/tobscure/followers","following_url":"https://api.github.com/users/tobscure/following{/other_user}","gists_url":"https://api.github.com/users/tobscure/gists{/gist_id}","starred_url":"https://api.github.com/users/tobscure/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobscure/subscriptions","organizations_url":"https://api.github.com/users/tobscure/orgs","repos_url":"https://api.github.com/users/tobscure/repos","events_url":"https://api.github.com/users/tobscure/events{/privacy}","received_events_url":"https://api.github.com/users/tobscure/received_events","type":"User","site_admin":false},"open_issues":50,"closed_issues":16,"state":"open","created_at":"2015-09-04T04:41:17Z","updated_at":"2016-01-07T02:14:14Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-12-29T09:46:50Z","updated_at":"2016-01-07T02:14:14Z","closed_at":"2016-01-07T02:14:14Z","body":"> core/src/Api/UrlGenerator.php\r\n\r\n    class UrlGenerator extends AbstractUrlGenerator\r\n    {\r\n        protected $prefix = 'api';\r\n    }\r\n> core/src/Api/Controller/ListDiscussionsController.php\r\n\r\n    87    $document->addPaginationLinks(\r\n            $this->url->toRoute('discussions.index'),\r\n            $request->getQueryParams(),\r\n            $offset,\r\n            $limit,\r\n            $results->areMoreResults() ? null : 0\r\n    93  );\r\n\r\nbut,\r\nget http://localhost:88/api/discussions?include=startUser&page%5Boffset%5D=0,\r\nnot prefix , just  \r\n\r\n    ...\r\n    \"links\": {\r\n        \"first\": \"https://discuss.flarum.org/discussions?include=startUser\",\r\n        \"next\": \"https://discuss.flarum.org/discussions?include=startUser&page%5Boffset%5D=20\"\r\n     },\r\n    ..."}}