diff --git a/Document/Subscriber/RoutableSubscriber.php b/Document/Subscriber/RoutableSubscriber.php index 3e5b6a2a..6a976506 100644 --- a/Document/Subscriber/RoutableSubscriber.php +++ b/Document/Subscriber/RoutableSubscriber.php @@ -310,7 +310,7 @@ private function updateRoute(RoutablePageBehavior $document): void $node = $this->documentInspector->getNode($document); $node->setProperty($propertyName, $route->getPath()); - $node->setProperty($this->propertyEncoder->localizedContentName(self::ROUTE_FIELD_NAME, $locale), $propertyName); + $node->setProperty($this->propertyEncoder->localizedContentName(self::ROUTE_FIELD_NAME, (string) $locale), $propertyName); } private function updateChildRoutes(ChildrenBehavior $document): void