Skip to main content

Function: removeSourceUrl()

removeSourceUrl(__namedParameters): string

Defined in: packages/core/src/utils/removeSourceUrl.ts:42

Make the link relative if it belongs to the backend, to force client-side navigation.

Inspired on the Frontity implementation

Parameters

__namedParameters

removeSourceUrlType

Returns

string

The URL without the Source URL.

See

https://github.com/frontity/frontity/blob/dev/packages/components/link/utils.ts