Skip to main content

ScmIntegrationRegistry.resolveEditUrl()

Home > @backstage/integration > ScmIntegrationRegistry > resolveEditUrl

Resolves the edit URL for a file within the SCM system.

Most SCM systems have a web interface that allows viewing and editing files in the repository. The returned URL directly jumps into the edit mode for the file. If this is not possible, the integration can fall back to a URL to view the file in the web interface.

Signature:

resolveEditUrl(url: string): string;

Parameters

Parameter

Type

Description

url

string

The absolute URL to the file that should be edited.

**Returns:**

string