Skip to content

Commit

Permalink
Merge branch '5.1' of github.com:bolt/core into 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bobdenotter committed Oct 28, 2022
2 parents 5098bd2 + 3b73bae commit 9a9ceaf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Controller/Frontend/ListingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,10 @@ public function listing(ContentRepository $contentRepository, string $contentTyp
$route = $content->getDefinition()->get('record_route');
$controller = $this->container->get('router')->getRouteCollection()->get($route)->getDefault('_controller');

return $this->forward($controller, ['slugOrId' => $content->getId()]);
$parameters = $this->request->attributes->all();
$parameters['slugOrId'] = $content->getId();

return $this->forward($controller, $parameters);
}

$records = $this->setRecords($content, $amountPerPage, $page);
Expand Down

0 comments on commit 9a9ceaf

Please sign in to comment.