Skip to main content

getTwistURL()

function getTwistURL(params: TwistURLParams): string;

Builds a relative Twist URL based on the provided parameters

Parameters

ParameterTypeDescription
paramsTwistURLParamsURL parameters including workspace, channel, conversation, thread, etc.

Returns

string

A relative URL path

Example

getTwistURL({ workspaceId: 1, channelId: 42, threadId: 1337 })
// returns '/a/1/ch/42/t/1337/'