From c8d60e3cc2e412c682e2df2521a430fa555b5fff Mon Sep 17 00:00:00 2001 From: Tomasz Kryszan Date: Wed, 30 Aug 2023 08:32:28 +0200 Subject: [PATCH] IBX-6315: Added url param publishedContentId https://issues.ibexa.co/browse/IBX-6315 --- src/lib/Form/Processor/ContentFormProcessor.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/lib/Form/Processor/ContentFormProcessor.php b/src/lib/Form/Processor/ContentFormProcessor.php index 8e6bd5d2..476d7b59 100644 --- a/src/lib/Form/Processor/ContentFormProcessor.php +++ b/src/lib/Form/Processor/ContentFormProcessor.php @@ -187,11 +187,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, ] );