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

    Function umbUrlPatternToString

    • Resolves the :parameter tokens in a URL pattern using the given parameter values.

      Parameters

      • pattern: string

        A URL pattern where parameters are written as :name (e.g. /section/:id/edit).

      • params: UmbUrlParametersRecord | null

        Key value object, where keys are parameter names and values are the values to replace them with.

      Returns string

      The pattern with its parameter tokens replaced.

      umbUrlPatternToString('/section/:id/edit', { id: 123 }); // '/section/123/edit'