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

    Function constructAbsolutePath

    • Constructs the correct absolute path based on a router.

      • Handles relative paths: "mypath"
      • Handles absolute paths: "/mypath"
      • Handles traversing paths: "../../mypath"

      Type Parameters

      • D = any
      • P = any

      Parameters

      • slot: IRouterSlot<D, P>

        The router slot to construct the path for.

      • Optionalpath: string = ''

        The path to make absolute.

      Returns string

      The absolute path.