diff --git a/src/Service/UWService.php b/src/Service/UWService.php index c6be1b059f0cb8861c1228ad6b41450851234e7e..c3d7b33936331b86dac2a4a25608abf105eb21ac 100644 --- a/src/Service/UWService.php +++ b/src/Service/UWService.php @@ -338,7 +338,7 @@ class UWService implements UWServiceInterface { $path = $this->pathAliasManager->getPathByAlias('/' . $alias); // Check if it is a node path and if so check if published. - if (preg_match('/node\/(\d+)/', $path, $matches)) { + if (preg_match('/^node\/(\d+)$/', $path, $matches)) { // Load in the node based on the path. $node = $this->entityTypeManager->getStorage('node')->load($matches[1]);