Bundle/PageBundle/Controller/BasePageController.php
public function showByIdAction(Request $request, $viewId, $entityId = null)
    {
        $parameters = [
            'viewId' => $viewId,
            'locale' => $request->getLocale(),
        ];
        if ($entityId) {
            $parameters['entityId'] = $entityId;
        }
        $page = $this->get('victoire_page.page_helper')->findPageByParameters($parameters);

        return $this->redirect($this->generateUrl(
            'victoire_core_page_show',
            array_merge(
                ['url' => $page->getReference()->getUrl()],
                $request->query->all()
            )
        ));
    }
public function showByIdAction(Request $request, $viewId, $entityId = null)
    {
        $parameters = [
            'viewId' => $viewId,
            'locale' => $request->getLocale(),
        ];
        if ($entityId) {
            $parameters['entityId'] = $entityId;
        }
        $page = $this->get('victoire_page.page_helper')->findPageByParameters($parameters);

        return $this->redirect($this->generateUrl(
            'victoire_core_page_show',
            array_merge(
                ['url' => $page->getReference()->getUrl()],
                $request->query->all()
            )
        ));
    }
public function showByIdAction ( Request $ request , $ viewId , $ entityId = null ) { $ parameters = [ 'viewId' => $ viewId , 'locale' => $ request -> getLocale ( ) , ] ; if ( $ entityId ) { $ parameters [ 'entityId' ] = $ entityId ; } $ page = $ this -> get ( 'victoire_page.page_helper' ) -> findPageByParameters ( $ parameters ) ; return $ this -> redirect ( $ this -> generateUrl ( 'victoire_core_page_show' , array_merge ( [ 'url' => $ page -> getReference ( ) -> getUrl ( ) ] , $ request -> query -> all ( ) ) ) ) ; }
Find url for a View id and optionally an Entity id and redirect to showAction.
Route for this action is defined in RouteLoader.

@param Request $request
@param $viewId
@param null $entityId

@return RedirectResponse
Find url for a View id and optionally an Entity id and redirect to showAction . Route for this action is defined in RouteLoader .