Skip to content

Commit 601b5b4

Browse files
authored
IBX-6315: Added url param publishedContentId (#53)
https://issues.ibexa.co/browse/IBX-6315
1 parent 6f39bc9 commit 601b5b4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/Form/Processor/ContentFormProcessor.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,13 @@ public function processPublish(FormActionEvent $event)
187187
? $referrerLocation->id
188188
: $content->contentInfo->mainLocationId;
189189

190+
$contentId = $content->id;
190191
$redirectUrl = $form['redirectUrlAfterPublish']->getData() ?: $this->router->generate(
191192
'ibexa.content.view',
192193
[
193-
'contentId' => $content->id,
194+
'contentId' => $contentId,
194195
'locationId' => $locationId,
196+
'publishedContentId' => $contentId,
195197
]
196198
);
197199

0 commit comments

Comments
 (0)