imports/vx/client/code/ux.js
/**
     * Get the first segment of the current route path. This is the route path without token.
     *
     * @return {string} First segment of route path.
     */
Get the first segment of the current route path. This is the route path without token.
@return {string} First segment of route path.
Get the first segment of the current route path . This is the route path without token . @return { string } First segment of route path .
firstSegment() {
        const routePath = Util.routePath()
        const index = routePath.lastIndexOf("/")
        return index === 0 ? routePath : routePath.substring(0, index + 1)
    }
firstSegment ( ) { const routePath = Util . routePath ( ) const index = routePath . lastIndexOf ( "/" ) return index === 0 ? routePath : routePath . substring ( 0 , index + 1 ) }
Get the first segment of the current route path.
Get the first segment of the current route path .