refactored Router::currentPath to become more "private"