From c7437fddc1055e441045de91b07f065860a1ae8f Mon Sep 17 00:00:00 2001 From: Jan Chaloupecky Date: Fri, 22 Apr 2022 13:27:33 +0200 Subject: [PATCH] Fixed base url trailing slash --- application/config/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/config/config.php b/application/config/config.php index 8560f65b..8c951a98 100644 --- a/application/config/config.php +++ b/application/config/config.php @@ -25,7 +25,7 @@ $domain = $_SERVER['HTTP_HOST'] ?? 'localhost'; $request_uri = dirname($_SERVER['SCRIPT_NAME']); -$config['base_url'] = $protocol . $domain . $request_uri; +$config['base_url'] = trim($protocol . $domain . $request_uri, "/"); /* |--------------------------------------------------------------------------