Use getUriForPath() instead getSchemeAndHttpHost() for proper redirection for cases where Thelia is installed in a subdirectory

This commit is contained in:
Nicolas Villa
2013-11-26 18:08:45 +01:00
parent e1bd2872d1
commit 05c723a9ac

View File

@@ -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;
}
}
}