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

    Function ensureLocalPath

    • Ensure that the path is a local path.

      Parameters

      • path: string | URL

        The path to check.

      • OptionalfallbackPath: string | URL

        The path to use if the given path is not local.

      Returns URL

      The local path, or the fallback path if the given path is not local.