From 76ebc3a884bb2e14df888f53184d3648cc833c3d Mon Sep 17 00:00:00 2001 From: dohodin Date: Thu, 30 Mar 2023 13:17:01 +0200 Subject: [PATCH] Try to get the container name 4 --- Source/Config/config.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/Config/config.php b/Source/Config/config.php index 31cb4ca..4581a88 100644 --- a/Source/Config/config.php +++ b/Source/Config/config.php @@ -14,11 +14,12 @@ $views['thanks'] = 'Views/HTML/thanks.php'; $views['error'] = 'Views/HTML/error.php'; $_SERVER['BASE_URI'] = ''; - -$url = "https://$_SERVER[HTTP_HOST]"; -echo $url; -$container_name = basename(parse_url($url, PHP_URL_PATH)); -echo $container_name; +$url = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]"; +echo "URL : ".$url; +$newUrl=parse_url($url, PHP_URL_PATH); +echo "NewURL : ".$newUrl; +$container_name = basename($newUrl); +echo "Container : ".$container_name; $controller['Candidate'] = 'ControllerCandidate';