Skip to content

Commit

Permalink
IBX-6315: Added url param publishedContentId
Browse files Browse the repository at this point in the history
  • Loading branch information
ciastektk committed Oct 10, 2023
1 parent 6f39bc9 commit c8d60e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/Form/Processor/ContentFormProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
]
);

Expand Down

0 comments on commit c8d60e3

Please sign in to comment.