Skip to content

Commit

Permalink
BUGFIX: Use nodeAggregateId as fallback for uriPathSegment instead of ""
Browse files Browse the repository at this point in the history
Since "" is treated as the uriPath for a site node this causes confusion if it is projected for a document in cases where one was created without an uriPathSegment which may happen for tethered nodes.

Resolves: #5412
  • Loading branch information
mficzel committed Dec 22, 2024
1 parent a7a3531 commit 107b282
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ private function whenNodeAggregateWithNodeWasCreated(NodeAggregateWithNodeWasCre
}

$propertyValues = $event->initialPropertyValues->getPlainValues();
$uriPathSegment = $propertyValues['uriPathSegment'] ?? '';
$uriPathSegment = $propertyValues['uriPathSegment'] ?? $event->nodeAggregateId->value;

$shortcutTarget = null;
if ($documentTypeClassification === DocumentTypeClassification::CLASSIFICATION_SHORTCUT) {
Expand Down

0 comments on commit 107b282

Please sign in to comment.