relative_url().'/'.Router::$current_uri, '/'); } else if( is_null(Router::$controller) && Router::$current_uri != '' ) { // Non-root album requested Router::$current_uri = trim(user_chroot::album()->relative_url().'/'.Router::$current_uri, '/'); } } return parent::parse_url(); } /** * Remove the chroot part of the URI. */ static function site($uri = '', $protocol = FALSE) { if( user_chroot::album() ) { $uri = preg_replace('#^'.user_chroot::album()->relative_url().'#', '', $uri); } return parent::site($uri, $protocol); } }