{"action":"created","issue":{"url":"https://api.github.com/repos/contao/installation-bundle/issues/25","repository_url":"https://api.github.com/repos/contao/installation-bundle","labels_url":"https://api.github.com/repos/contao/installation-bundle/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/contao/installation-bundle/issues/25/comments","events_url":"https://api.github.com/repos/contao/installation-bundle/issues/25/events","html_url":"https://github.com/contao/installation-bundle/issues/25","id":168599382,"number":25,"title":"Redirect during instalation.","user":{"login":"issue-bot","id":1215373,"avatar_url":"https://avatars.githubusercontent.com/u/1215373?v=3","gravatar_id":"","url":"https://api.github.com/users/issue-bot","html_url":"https://github.com/issue-bot","followers_url":"https://api.github.com/users/issue-bot/followers","following_url":"https://api.github.com/users/issue-bot/following{/other_user}","gists_url":"https://api.github.com/users/issue-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/issue-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/issue-bot/subscriptions","organizations_url":"https://api.github.com/users/issue-bot/orgs","repos_url":"https://api.github.com/users/issue-bot/repos","events_url":"https://api.github.com/users/issue-bot/events{/privacy}","received_events_url":"https://api.github.com/users/issue-bot/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/contao/installation-bundle/labels/defect","name":"defect","color":"bd2c00"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/contao/installation-bundle/milestones/7","html_url":"https://github.com/contao/installation-bundle/milestones/1.1.3","labels_url":"https://api.github.com/repos/contao/installation-bundle/milestones/7/labels","id":1915238,"number":7,"title":"1.1.3","description":"","creator":{"login":"leofeyer","id":1192057,"avatar_url":"https://avatars.githubusercontent.com/u/1192057?v=3","gravatar_id":"","url":"https://api.github.com/users/leofeyer","html_url":"https://github.com/leofeyer","followers_url":"https://api.github.com/users/leofeyer/followers","following_url":"https://api.github.com/users/leofeyer/following{/other_user}","gists_url":"https://api.github.com/users/leofeyer/gists{/gist_id}","starred_url":"https://api.github.com/users/leofeyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leofeyer/subscriptions","organizations_url":"https://api.github.com/users/leofeyer/orgs","repos_url":"https://api.github.com/users/leofeyer/repos","events_url":"https://api.github.com/users/leofeyer/events{/privacy}","received_events_url":"https://api.github.com/users/leofeyer/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":0,"state":"open","created_at":"2016-08-01T09:05:15Z","updated_at":"2016-08-01T09:05:21Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2016-08-01T09:04:41Z","updated_at":"2016-08-01T09:12:14Z","closed_at":null,"body":"<a href=\"https://github.com/wad2eq\"><img src=\"https://avatars.githubusercontent.com/u/2860728?v=3\" align=\"left\" width=\"42\" height=\"42\"></img></a> [Issue](https://github.com/contao/standard-edition/issues/43) by @wad2eq\nAugust 1st, 2016, 07:19 GMT\n\nI'm trying install contao on localhost i put in adress bar localhost/contao/web/install.php i check box i agree with Contidion and i get  redirection do localhost/contao/install and error 404"},"comment":{"url":"https://api.github.com/repos/contao/installation-bundle/issues/comments/236529035","html_url":"https://github.com/contao/installation-bundle/issues/25#issuecomment-236529035","issue_url":"https://api.github.com/repos/contao/installation-bundle/issues/25","id":236529035,"user":{"login":"fritzmg","id":4970961,"avatar_url":"https://avatars.githubusercontent.com/u/4970961?v=3","gravatar_id":"","url":"https://api.github.com/users/fritzmg","html_url":"https://github.com/fritzmg","followers_url":"https://api.github.com/users/fritzmg/followers","following_url":"https://api.github.com/users/fritzmg/following{/other_user}","gists_url":"https://api.github.com/users/fritzmg/gists{/gist_id}","starred_url":"https://api.github.com/users/fritzmg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fritzmg/subscriptions","organizations_url":"https://api.github.com/users/fritzmg/orgs","repos_url":"https://api.github.com/users/fritzmg/repos","events_url":"https://api.github.com/users/fritzmg/events{/privacy}","received_events_url":"https://api.github.com/users/fritzmg/received_events","type":"User","site_admin":false},"created_at":"2016-08-01T09:12:14Z","updated_at":"2016-08-01T09:12:14Z","body":"> It is?\r\n\r\nYes, I already pointed that out here: https://github.com/contao/installation-bundle/issues/18#issuecomment-227702049 ;)\r\n\r\nThe original issue (#18) unfortunately wasn't fixed after all. The problem is, that an empty base URL is set here now: https://github.com/contao/installation-bundle/1.1.2/master/src/HttpKernel/InstallationKernel.php#L121\r\n```php\r\n$context = new RequestContext();\r\n$context->fromRequest(Request::createFromGlobals());\r\n$context->setBaseUrl('');\r\n```\r\nSince the base URL is empty, the router generates routes without `/web` for example. But without setting the base URL (thus leaving the default base URL), the router would generate the URL like so: `/web/install.php/contao/install` which is also wrong of course.\r\n\r\nIn order to fix it, the base URL would need to be set manually with the current base web path of the `Request` - but with `/install.php` (the current `SCRIPT_NAME`) be removed. But that's not a pretty solution either, I think."}}
{"actor":{"display_login":"fritzmg"}}