Skip to main content
Version: 2.0.0

Function: fullPathToCollectionSegments

fullPathToCollectionSegments(path): string[]

Extract the collection path routes products/B44RG6APH/locales => [products, locales]

Parameters

NameType
pathstring

Returns

string[]

Defined in

lib/src/core/util/paths.ts:23

Enterprise or start-up?

Learn how to get the most out of your project with the help of our consulting team.
Learn more
Sign up to our newsletter to get the latest news and updates. No spam!