/**
  * @param       $name
  * @param array $args
  *
  * @return false|string
  * @throws RouteNotFound
  */
 public function routeNameToUrlString($name, array $args = [])
 {
     foreach ($args as $offset => $arg) {
         if (!$arg) {
             unset($args[$offset]);
         }
     }
     try {
         $url = $this->generate($name, $args);
     } catch (RouteNotFound $exception) {
         try {
             $newName = 'default.' . $name;
             $url = $this->generate($newName, $args);
         } catch (RouteNotFound $e) {
             throw new RouteNotFound(sprintf('Route with name "%s" or "%s" not found', $newName, $name));
         }
     }
     if (FALSE !== strstr($url, '{')) {
         throw new RouteNotFound(sprintf('Route with name "%s" needs parameters. Temporary resulted into: %s', $name, $url));
     }
     return $this->request->getBaseUrl() . $url;
 }