{"action":"created","issue":{"url":"https://api.github.com/repos/laravel/framework/issues/16299","repository_url":"https://api.github.com/repos/laravel/framework","labels_url":"https://api.github.com/repos/laravel/framework/issues/16299/labels{/name}","comments_url":"https://api.github.com/repos/laravel/framework/issues/16299/comments","events_url":"https://api.github.com/repos/laravel/framework/issues/16299/events","html_url":"https://github.com/laravel/framework/issues/16299","id":187746501,"number":16299,"title":"[5.2.45] Losing https in public/subfolder","user":{"login":"ilvalerione","id":13559278,"avatar_url":"https://avatars.githubusercontent.com/u/13559278?v=3","gravatar_id":"","url":"https://api.github.com/users/ilvalerione","html_url":"https://github.com/ilvalerione","followers_url":"https://api.github.com/users/ilvalerione/followers","following_url":"https://api.github.com/users/ilvalerione/following{/other_user}","gists_url":"https://api.github.com/users/ilvalerione/gists{/gist_id}","starred_url":"https://api.github.com/users/ilvalerione/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilvalerione/subscriptions","organizations_url":"https://api.github.com/users/ilvalerione/orgs","repos_url":"https://api.github.com/users/ilvalerione/repos","events_url":"https://api.github.com/users/ilvalerione/events{/privacy}","received_events_url":"https://api.github.com/users/ilvalerione/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-07T15:47:26Z","updated_at":"2016-11-08T06:53:19Z","closed_at":null,"body":"- Laravel Version: 5.2.45\r\n- PHP Version: 7\r\n- Database Driver & Version: MySQL\r\n\r\n### Description:\r\n1. I access to my application by an HTTPS address. (Let's Encrypt is installed)\r\n2. I want to point a static HTML page in public/subfolder always with https.\r\n\r\nI generate a link for /subfolder using `{{ url('/subfolder') }}` and in HREF i see the link is generated with https prefix correctly using \"inspect\" tool of Chrome. `https/www.mydomain.com/subfolder`\r\n\r\nWhen i click on this link I have redirected to this /subfolder but I lose the https prefix. The link is opened with normal http.\r\n\r\n### Steps To Reproduce:\r\n1. You need a web server with a SSL certificate installed\r\n\r\n2. Create a subfolder under public/ and put a static index.html with simple \"Hello world\"\r\n\r\n3. Into welcome.blade.php insert a link to this subfolder with a simple line of code\r\n`<a href=\"{{ url('/subfolder') }}\">Go to subfolder</a>`\r\n\r\n4. Access to your laravel welcome page using https:// prefix\r\n\r\n5. Click on the link for /subfolder and you verify in your address bar on browser that you've been redirected losing https prefix.\r\n\r\n### Notes\r\nLaravel manage redirection to subfolders if there isn't any route that match the given path. \r\n\r\nDo you may need to add a fix to the .htaccess file?\r\n\r\nThanks for your support"},"comment":{"url":"https://api.github.com/repos/laravel/framework/issues/comments/259060233","html_url":"https://github.com/laravel/framework/issues/16299#issuecomment-259060233","issue_url":"https://api.github.com/repos/laravel/framework/issues/16299","id":259060233,"user":{"login":"sisve","id":748375,"avatar_url":"https://avatars.githubusercontent.com/u/748375?v=3","gravatar_id":"","url":"https://api.github.com/users/sisve","html_url":"https://github.com/sisve","followers_url":"https://api.github.com/users/sisve/followers","following_url":"https://api.github.com/users/sisve/following{/other_user}","gists_url":"https://api.github.com/users/sisve/gists{/gist_id}","starred_url":"https://api.github.com/users/sisve/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sisve/subscriptions","organizations_url":"https://api.github.com/users/sisve/orgs","repos_url":"https://api.github.com/users/sisve/repos","events_url":"https://api.github.com/users/sisve/events{/privacy}","received_events_url":"https://api.github.com/users/sisve/received_events","type":"User","site_admin":false},"created_at":"2016-11-08T06:53:19Z","updated_at":"2016-11-08T06:53:19Z","body":"A static `public/something/index.html` is not handled by Laravel. This sounds like a webserver configuration issue."}}
{"actor":{"display_login":"sisve"}}