cleaning baseurl variable for twig