From c294ae19aba18e6fcb4701c73085b5ec87d93238 Mon Sep 17 00:00:00 2001 From: Sven Brunk Date: Wed, 26 Jun 2024 12:53:12 +0200 Subject: [PATCH] Do not use DIRECTORY_SEPARATOR for URLs! DIRECTORY_SEPARATOR is different on each platforms while URLs always use / (Caution! I didn't check if the code makes sense at all. I only translated it to URLs 1:1) --- src/Service/Context.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Service/Context.php b/src/Service/Context.php index a24372d1..22b5b0a8 100644 --- a/src/Service/Context.php +++ b/src/Service/Context.php @@ -115,7 +115,6 @@ public function getControllerUrl(string $controller, array $optionalGetParameter public function getShopUrl(): string { $facts = new Facts(); - return rtrim($facts->getShopUrl(), DIRECTORY_SEPARATOR) . - DIRECTORY_SEPARATOR; + return rtrim($facts->getShopUrl(), '/') . '/'; } }