From 05c723a9acfdfd6f4060c6385be0d1bdbff297b9 Mon Sep 17 00:00:00 2001 From: Nicolas Villa Date: Tue, 26 Nov 2013 18:08:45 +0100 Subject: [PATCH] Use getUriForPath() instead getSchemeAndHttpHost() for proper redirection for cases where Thelia is installed in a subdirectory --- core/bootstrap.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}