kit
    Preparing search index...
    • 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]

      Parameters

      • pathname: string = ""

      Returns string[]