{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/8231","labels_url":"https://api.github.com/repos/laravel/framework/issues/8231/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/8231/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/8231/events","html_url":"https://github.com/laravel/framework/issues/8231","id":65419768,"number":8231,"title":"[L5] Paginator links broken on apache when app installed in non-base path","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":"closed","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-03-31T10:30:40Z","updated_at":"2015-06-05T15:19:10Z","closed_at":"2015-06-05T15:08:26Z","body":"This affects both the standard ['simple'](https://github.com/laravel/framework/blob/5.0/src/Illuminate/Pagination/Paginator.php#L39) and [length aware paginator](https://github.com/laravel/framework/blob/5.0/src/Illuminate/Pagination/LengthAwarePaginator.php#L49).\r\n\r\n```php\r\n$this->path = $this->path != '/' ? rtrim($this->path, '/').'/' : $this->path;\r\n```\r\n\r\nNotice the trailing slash which generates urls like:\r\n\r\n> http://localhost/my-app/public/users/?page=1\r\n\r\nIn the htaccess trailing slashes are redirected back to base url:\r\n\r\n```\r\n# Redirect Trailing Slashes...\r\nRewriteRule ^(.*)/$ /$1 [L,R=301]\r\n```\r\n\r\nSo when you navigate, you get redirected to simply `http://localhost/users/?page=1` essentially breaking pagination when you use apache."},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/109325498","html_url":"https://github.com/laravel/framework/issues/8231#issuecomment-109325498","issue_url":"https://api.github.com/repos/laravel/framework/issues/8231","id":109325498,"user":{"login":"crynobone","id":172966,"avatar_url":"https://avatars.githubusercontent.com/u/172966?v=3","gravatar_id":"","url":"https://api.github.com/users/crynobone","html_url":"https://github.com/crynobone","followers_url":"https://api.github.com/users/crynobone/followers","following_url":"https://api.github.com/users/crynobone/following{/other_user}","gists_url":"https://api.github.com/users/crynobone/gists{/gist_id}","starred_url":"https://api.github.com/users/crynobone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crynobone/subscriptions","organizations_url":"https://api.github.com/users/crynobone/orgs","repos_url":"https://api.github.com/users/crynobone/repos","events_url":"https://api.github.com/users/crynobone/events{/privacy}","received_events_url":"https://api.github.com/users/crynobone/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T15:19:10Z","updated_at":"2015-06-05T15:19:10Z","body":"> Ok then, screw everyone installing Laravel in a non-base path. Nice view. Sigh\r\n\r\nTake it in a positive way, you can either:\r\n\r\n1. try to make taylor changes his mind.\r\n2. have someone in the community to create a PR fix without breaking anything else (this give better argument for taylor to accept such PR). \r\n\r\nMy point with this is that, sure you +1. But don't +1 hoping that Laravel Contributor is going to do anything about it, or argue in future why the team never done anything to fix this 1, 2, 3 years down the road despite getting hundreds of +1."}}