public static function getSelfRoutedURLNoQuery()
    {
        $selfURLhost = self::getSelfURLhost();
        $route = '';

        if (!empty($_SERVER['REQUEST_URI'])) {
            $route = $_SERVER['REQUEST_URI'];
            if (!empty($_SERVER['QUERY_STRING'])) {
                $route = str_replace($_SERVER['QUERY_STRING'], '', $route);
                if (substr($route, -1) == '?') {
                    $route = substr($route, 0, -1);
                }
            }
        }

        $infoWithBaseURLPath = self::buildWithBaseURLPath($route);
        if (!empty($infoWithBaseURLPath)) {
            $route = $infoWithBaseURLPath;
        }

        $selfRoutedURLNoQuery = $selfURLhost . $route;
        return $selfRoutedURLNoQuery;
    }
public static function getSelfRoutedURLNoQuery()
    {
        $selfURLhost = self::getSelfURLhost();
        $route = '';

        if (!empty($_SERVER['REQUEST_URI'])) {
            $route = $_SERVER['REQUEST_URI'];
            if (!empty($_SERVER['QUERY_STRING'])) {
                $route = str_replace($_SERVER['QUERY_STRING'], '', $route);
                if (substr($route, -1) == '?') {
                    $route = substr($route, 0, -1);
                }
            }
        }

        $infoWithBaseURLPath = self::buildWithBaseURLPath($route);
        if (!empty($infoWithBaseURLPath)) {
            $route = $infoWithBaseURLPath;
        }

        $selfRoutedURLNoQuery = $selfURLhost . $route;
        return $selfRoutedURLNoQuery;
    }
public static function getSelfRoutedURLNoQuery ( ) { $ selfURLhost = self :: getSelfURLhost ( ) ; $ route = '' ; if ( ! empty ( $ _SERVER [ 'REQUEST_URI' ] ) ) { $ route = $ _SERVER [ 'REQUEST_URI' ] ; if ( ! empty ( $ _SERVER [ 'QUERY_STRING' ] ) ) { $ route = str_replace ( $ _SERVER [ 'QUERY_STRING' ] , '' , $ route ) ; if ( substr ( $ route , - 1 ) == '?' ) { $ route = substr ( $ route , 0 , - 1 ) ; } } } $ infoWithBaseURLPath = self :: buildWithBaseURLPath ( $ route ) ; if ( ! empty ( $ infoWithBaseURLPath ) ) { $ route = $ infoWithBaseURLPath ; } $ selfRoutedURLNoQuery = $ selfURLhost . $ route ; return $ selfRoutedURLNoQuery ; }
Returns the routed URL of the current host + current view.

@return string
Returns the routed URL of the current host + current view .