diff --git a/Classes/Service/SiteDeterminationService.php b/Classes/Service/SiteDeterminationService.php index 050833b..551201c 100644 --- a/Classes/Service/SiteDeterminationService.php +++ b/Classes/Service/SiteDeterminationService.php @@ -34,7 +34,7 @@ public function getCurrentSiteName(): ?string * Site as uri path segment * Used to get dimension constraints in the backend */ - preg_match('/content-dimensions\/(\S+)\/country\.json/', $httpRequest->getUri()->getPath(), $matches, PREG_OFFSET_CAPTURE); + preg_match('/content-dimensions\/([a-zA-Z\-\_\.]+)\/[a-zA-Z\-\_]+\.json/', $httpRequest->getUri()->getPath(), $matches, PREG_OFFSET_CAPTURE); if (($matches[1] ?? null) !== null) { self::$siteName = $matches[1][0]; return self::$siteName;