Closed ghost closed 8 years ago
It is?
Yes, I already pointed that out here: https://github.com/contao/installation-bundle/issues/18#issuecomment-227702049 ;)
The 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/blob/1.1.2/src/HttpKernel/InstallationKernel.php#L121
$context = new RequestContext();
$context->fromRequest(Request::createFromGlobals());
$context->setBaseUrl('');
Since 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.
In order to fix it, the base URL would need to be set manually with the current base web path of the Request
- with /install.php
(the current SCRIPT_NAME
) removed. But that's not a pretty solution either, I think.
If the /web
fragment is present, we must assume that URL rewriting has not yet been configured, therefore we would need to redirect to /web/app.php/contao/install
, wouldn't we?
Shouldn't the path be automatically handled by the Symfony router or url generator?
I think you need to re-read the ticket. :wink:
Fixed in 571ae0fac73517c4575e57deec85905bfc98c1b4.
This is a problem again in contao/standard-edition
and contao/managed-edition
. Accessing http://localhost/contao4/web/install.php
redirects to http://localhost/contao/install
.
Issue by @wad2eq August 1st, 2016, 07:19 GMT
I'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