Fix wrong URL when installing in a domain or sub domain.

pull/3064/head
Julio Montoya 5 years ago
parent aacfc9927b
commit 674f33c4c6
  1. 5
      main/inc/global.inc.php

@ -50,6 +50,9 @@ try {
exit;
}
$append = "$append/";
$append .= 'public';
} else {
$append .= '/public';
}
$container = $kernel->getContainer();
@ -60,8 +63,6 @@ try {
$router->setContext($context);
$response = $kernel->handle($request);
$context = Container::getRouter()->getContext();
//var_dump($append);
$append .= '/public';
$context->setBaseUrl($append);
$container = $kernel->getContainer();

Loading…
Cancel
Save