diff --git a/Plugin/App/Request/StorePathInfoValidator.php b/Plugin/App/Request/StorePathInfoValidator.php index 3779c32..12965fa 100644 --- a/Plugin/App/Request/StorePathInfoValidator.php +++ b/Plugin/App/Request/StorePathInfoValidator.php @@ -21,7 +21,7 @@ public function __construct( public function beforeGetValidStoreCode(Subject $subject, Http $request, string $pathInfo = ''): array { - if ($this->config->isEnabled()) { + if ($pathInfo !== '' && $this->config->isEnabled()) { $uri = $request->getUriString(); /** @var Store $store */ foreach ($this->storeRepository->getList() as $store) {