cluster/containers/baikal/baikal-project-uri.patch

15 lines
720 B
Diff
Raw Normal View History

diff --git a/Core/Frameworks/Flake/Framework.php b/Core/Frameworks/Flake/Framework.php
index 73f6b9d..139ee75 100644
--- a/Core/Frameworks/Flake/Framework.php
+++ b/Core/Frameworks/Flake/Framework.php
@@ -239,7 +239,8 @@ class Framework extends \Flake\Core\Framework {
$sHttpBaseUrl = self::rmQuery($sHttpBaseUrl);
$sHttpBaseUrl = self::rmScriptName($sHttpBaseUrl, $sScript);
$sHttpBaseUrl = self::rmProjectContext($sHttpBaseUrl);
- define("PROJECT_URI", $sProtocol . "://" . $_SERVER["HTTP_HOST"] . $sHttpBaseUrl);
+ define("PROJECT_URI", $_SERVER['HTTP_X_BAIKAL_URI']);
+ echo $PROJECT_URI
unset($sScript);
unset($sDirName);
unset($sBaseUrl);