Skip to content

Commit

Permalink
Fix preview redirect on publish (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
javihgil committed Jun 21, 2024
1 parent 370b5fb commit 1bcb1df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventListener/Admin/ContentRedirectBackTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ protected function redirectBack(string $configId, ContentInterface $entity, Requ

case 'preview':
if ($version) {
return new RedirectResponse($this->router->generate("sfs_cms_admin_content_{$configId}_preview_version", ['content' => $entity, 'version' => $version]));
return new RedirectResponse($this->router->generate("sfs_cms_admin_content_{$configId}_preview", ['content' => $entity, 'version' => $version]));
}

return new RedirectResponse($this->router->generate("sfs_cms_admin_content_{$configId}_preview", ['content' => $entity]));
Expand Down

0 comments on commit 1bcb1df

Please sign in to comment.