diff --git a/src/lib/Form/Processor/ContentFormProcessor.php b/src/lib/Form/Processor/ContentFormProcessor.php index 306a7f4d..73114210 100644 --- a/src/lib/Form/Processor/ContentFormProcessor.php +++ b/src/lib/Form/Processor/ContentFormProcessor.php @@ -130,11 +130,13 @@ public function processPublish(FormActionEvent $event) ? $referrerLocation->id : $content->contentInfo->mainLocationId; + $contentId = $content->id; $redirectUrl = $form['redirectUrlAfterPublish']->getData() ?: $this->router->generate( 'ibexa.content.view', [ - 'contentId' => $content->id, + 'contentId' => $contentId, 'locationId' => $locationId, + 'publishedContentId' => $contentId, ] );