Skip to main content
Version: 2.0.0-alpha

Function: getCollectionPathsCombinations

getCollectionPathsCombinations(subpaths): string[]

Get the subcollection combinations from a path: "sites/es/locales" => ["sites/es/locales", "sites"]

Parameters

NameType
subpathsstring[]

Returns

string[]

Defined in

lib/src/core/util/navigation_utils.ts:101