src/Zicht/Bundle/UrlBundle/Controller/StaticReferenceController.php
public function redirectAction(Request $request, $name, $code = 301)
    {
        return new RedirectResponse(
            $this->get('zicht_url.provider')->url($name),
            $code
        );
    }
public function redirectAction(Request $request, $name, $code = 301)
    {
        return new RedirectResponse(
            $this->get('zicht_url.provider')->url($name),
            $code
        );
    }
public function redirectAction ( Request $ request , $ name , $ code = 301 ) { return new RedirectResponse ( $ this -> get ( 'zicht_url.provider' ) -> url ( $ name ) , $ code ) ; }
Redirects to the url provided by the main url provider service.

@param Request $request
@param string $name
@param int $code
@return \Symfony\Component\HttpFoundation\RedirectResponse

@Route("/_static-ref/{name}")
Redirects to the url provided by the main url provider service .