src/WebApp/Utils/Navigation.php
public static function getUrlFromCode($code, $addedArgs = array(), $anchor = null)
  {
    self::initialize();

    $code = self::clearQueryArg($code);

    if ($code == '_root') {
      return WebApp::url();
    }

    if (StringTools::right($code, 1) != '/') {
      $code .= '/';
    }

    $args = array('q' => $code);
    $args = array_merge($args, $addedArgs);
    return Url::getUrl(null, $args, true, $anchor);
  }
public static function getUrlFromCode($code, $addedArgs = array(), $anchor = null)
  {
    self::initialize();

    $code = self::clearQueryArg($code);

    if ($code == '_root') {
      return WebApp::url();
    }

    if (StringTools::right($code, 1) != '/') {
      $code .= '/';
    }

    $args = array('q' => $code);
    $args = array_merge($args, $addedArgs);
    return Url::getUrl(null, $args, true, $anchor);
  }
public static function getUrlFromCode ( $ code , $ addedArgs = array ( ) , $ anchor = null ) { self :: initialize ( ) ; $ code = self :: clearQueryArg ( $ code ) ; if ( $ code == '_root' ) { return WebApp :: url ( ) ; } if ( StringTools :: right ( $ code , 1 ) != '/' ) { $ code .= '/' ; } $ args = array ( 'q' => $ code ) ; $ args = array_merge ( $ args , $ addedArgs ) ; return Url :: getUrl ( null , $ args , true , $ anchor ) ; }
Get a full url from an url code

@param  string $code       Url code
@param  array  $addedArgs  (optional) Additional arguments
@param  string $anchor     (optional) Anchor
Get a full url from an url code