src/WebApp/Utils/Navigation.php
public static function clearQueryArg($code)
  {
    if (StringTools::left($code, 1) == '/') {
      $code = StringTools::right($code, StringTools::len($code)-1);
    }
    if (StringTools::right($code, 1) == '/') {
      $code = StringTools::left($code, StringTools::len($code)-1);
    }

    return $code;
  }
public static function clearQueryArg($code)
  {
    if (StringTools::left($code, 1) == '/') {
      $code = StringTools::right($code, StringTools::len($code)-1);
    }
    if (StringTools::right($code, 1) == '/') {
      $code = StringTools::left($code, StringTools::len($code)-1);
    }

    return $code;
  }
public static function clearQueryArg ( $ code ) { if ( StringTools :: left ( $ code , 1 ) == '/' ) { $ code = StringTools :: right ( $ code , StringTools :: len ( $ code ) - 1 ) ; } if ( StringTools :: right ( $ code , 1 ) == '/' ) { $ code = StringTools :: left ( $ code , StringTools :: len ( $ code ) - 1 ) ; } return $ code ; }
Clean the Url code

@param  string $code  Url code
@return string
Clean the Url code