Get pathname parts
First clean the pathname from the first slash if any then split the pathname in parts, Given a pathname like: "/en/{prefix}/{collection}/{slug}" we obtain [locale, prefix, collection, slug]
"/en/{prefix}/{collection}/{slug}"
[locale, prefix, collection, slug]
Get pathname parts
First clean the pathname from the first slash if any then split the pathname in parts, Given a pathname like:
"/en/{prefix}/{collection}/{slug}"we obtain[locale, prefix, collection, slug]