src/Kunstmaan/NodeBundle/Controller/UrlReplaceController.php
public function replaceURLAction(Request $request)
    {
        $response = new JsonResponse();

        $response->setData(['text' => $this->urlHelper->replaceUrl($request->get('text'))]);

        return $response;
    }
public function replaceURLAction(Request $request)
    {
        $response = new JsonResponse();

        $response->setData(['text' => $this->urlHelper->replaceUrl($request->get('text'))]);

        return $response;
    }
public function replaceURLAction ( Request $ request ) { $ response = new JsonResponse ( ) ; $ response -> setData ( [ 'text' => $ this -> urlHelper -> replaceUrl ( $ request -> get ( 'text' ) ) ] ) ; return $ response ; }
Render a url with the twig url replace filter

@Route("/replace", name="KunstmaanNodeBundle_urlchooser_replace", condition="request.isXmlHttpRequest()")
Render a url with the twig url replace filter