diff --git a/core/src/plugins/action.share/src/View/MinisiteRenderer.php b/core/src/plugins/action.share/src/View/MinisiteRenderer.php index 13f012f641..83180e6bb6 100644 --- a/core/src/plugins/action.share/src/View/MinisiteRenderer.php +++ b/core/src/plugins/action.share/src/View/MinisiteRenderer.php @@ -237,7 +237,11 @@ public static function writeHtml(ResponseInterface $responseInterface, ContextIn if (!empty($data["AJXP_APPLICATION_BASE"])) { $tPath = $data["AJXP_APPLICATION_BASE"]; } else { - $tPath = (!empty($data["TRAVEL_PATH_TO_ROOT"]) ? $data["TRAVEL_PATH_TO_ROOT"] : "../.."); + // Replace base uri by .. : /path/to/uri should give ../../.. + $defaultTPath = implode("/", array_map(function ($v) { + return ".."; + }, explode("/", trim(ConfService::getGlobalConf("PUBLIC_BASEURI"), "/")))); + $tPath = (!empty($data["TRAVEL_PATH_TO_ROOT"]) ? $data["TRAVEL_PATH_TO_ROOT"] : $defaultTPath); } $serverBaseUrl = ApplicationState::detectServerURL(true);