public static function curPageUrlFolder() {
        $folder = self::curPageUrlBase() .  $_SERVER['REQUEST_URI'];
        $folder = self::removeQueryString($folder);
        if ( preg_match('/\/$/', $folder) ) return $folder;
        return dirname($folder);
    }