{"action":"opened","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/15562","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/15562/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/15562/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/15562/events","html_url":"https://github.com/laravel/framework/issues/15562","id":178641260,"number":15562,"title":"Paginator prefixing urls with /","user":{"login":"garygreen","id":1702638,"avatar_url":"https://avatars.githubusercontent.com/u/1702638?v=3","gravatar_id":"","url":"https://api.github.com/users/garygreen","html_url":"https://github.com/garygreen","followers_url":"https://api.github.com/users/garygreen/followers","following_url":"https://api.github.com/users/garygreen/following{/other_user}","gists_url":"https://api.github.com/users/garygreen/gists{/gist_id}","starred_url":"https://api.github.com/users/garygreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/garygreen/subscriptions","organizations_url":"https://api.github.com/users/garygreen/orgs","repos_url":"https://api.github.com/users/garygreen/repos","events_url":"https://api.github.com/users/garygreen/events{/privacy}","received_events_url":"https://api.github.com/users/garygreen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-22T15:25:38Z","updated_at":"2016-09-22T15:25:38Z","closed_at":null,"body":"The paginator is still prefixing urls with \"/\" when using the LengthAwarePaginator manually.\r\n\r\nSteps to reproduce:\r\n\r\n```php\r\n    $news = new Illuminate\\Pagination\\LengthAwarePaginator(['a', 'b', 'c'], 3, 1);\r\n    return $news->render();\r\n```\r\n\r\nWill render links like:\r\n\r\n```html\r\n<li><a href=\"/?page=1\">1</a></li>\r\n<li class=\"active\"><span>2</span></li>\r\n<li><a href=\"/?page=3\">3</a></li>\r\n```\r\n\r\nIf you did the same with eloquent `->paginate()` it wouldn't output links with `/?`\r\n\r\nAccording to the docs this was fixed:\r\n\r\n> Pagination\r\n> To be consistent with other URLs generated by the framework, the paginator URLs no longer contain a trailing slash. This is unlikely to affect your application.\r\n\r\n😕 "}}
{"actor":{"display_login":"garygreen"}}