@umbraco-cms/backoffice
    Preparing search index...

    Function slashify

    • Makes sure that the start and end slashes are present or not depending on the options.

      Parameters

      • path: string

        The path to slashify

      • options: Partial<ISlashOptions> = {}

        The slash options

        • start

          Whether the path should start with a slash

        • end

          Whether the path should end with a slash

      Returns string

      The slashified path