diff --git a/core/bootstrap.php b/core/bootstrap.php index 7023fb46b..6adb68327 100755 --- a/core/bootstrap.php +++ b/core/bootstrap.php @@ -21,7 +21,7 @@ if (!file_exists(THELIA_CONF_DIR . 'database.yml') && !defined('THELIA_INSTALL_M define('THELIA_INSTALL_MODE', true); } else { $request = \Thelia\Core\HttpFoundation\Request::createFromGlobals(); - header('location: '.$request->getSchemeAndHttpHost() . '/install'); + header('location: '.$request->getUriForPath() . '/install'); exit; } -} \ No newline at end of file +} diff --git a/web/install/config.php b/web/install/config.php index d3d4fe869..b904a7900 100755 --- a/web/install/config.php +++ b/web/install/config.php @@ -73,6 +73,10 @@ if (!$err && $_SESSION['install']['step'] != $step) { $_SESSION['install']['step'] = $step; +// Retrieve the website url +$url = $_SERVER['PHP_SELF']; +$website_url = preg_replace("#/install/[a-z](.*)#" ,'', $url); + ?>
@@ -98,7 +102,7 @@ $_SESSION['install']['step'] = $step;
- +
diff --git a/web/install/end.php b/web/install/end.php index 9cca8ede1..8c1d1d55c 100755 --- a/web/install/end.php +++ b/web/install/end.php @@ -58,6 +58,11 @@ $fs->remove(THELIA_ROOT . '/cache/dev'); $request = \Thelia\Core\HttpFoundation\Request::createFromGlobals(); $_SESSION['install']['step'] = $step; + +// Retrieve the website url +$url = $_SERVER['PHP_SELF']; +$website_url = preg_replace("#/install/[a-z](.*)#" ,'', $url); + ?>
@@ -69,8 +74,8 @@ $_SESSION['install']['step'] = $step;

- Go to back office + Go to back office

- \ No newline at end of file +