Skip to content

Commit

Permalink
fixup! Allowed injecting view type into content preview controller
Browse files Browse the repository at this point in the history
  • Loading branch information
alongosz committed Oct 23, 2023
1 parent cdf411f commit a5154fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function previewContentAction(
}

try {
$viewType = $request->query->get('viewType') ?? ViewManagerInterface::VIEW_TYPE_FULL;
$viewType = $request->query->get('viewType', ViewManagerInterface::VIEW_TYPE_FULL);
$response = $this->kernel->handle(
$this->getForwardRequest($location, $content, $siteAccess, $request, $language, $viewType),
HttpKernelInterface::SUB_REQUEST,
Expand Down

0 comments on commit a5154fe

Please sign in to comment.