MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / redirectThreadToDomain

Function redirectThreadToDomain

apps/web/utilities/redirects.ts:80–105  ·  view source on GitHub ↗
({
  account,
  communityName,
  settings,
  threadId,
  slug,
}: {
  account: SerializedAccount;
  communityName: string;
  settings: Settings;
  threadId: string;
  slug?: string;
})

Source from the content-addressed store, hash-verified

78}
79
80export function redirectThreadToDomain({
81 account,
82 communityName,
83 settings,
84 threadId,
85 slug,
86}: {
87 account: SerializedAccount;
88 communityName: string;
89 settings: Settings;
90 threadId: string;
91 slug?: string;
92}) {
93 return RedirectTo(
94 appendProtocol(
95 account.redirectDomain +
96 buildThreadUrl({
97 isSubdomainbasedRouting: true,
98 settings,
99 communityName,
100 threadId,
101 slug,
102 })
103 )
104 );
105}
106
107function buildChannelUrl({
108 isSubdomainbasedRouting,

Callers 1

threadGetServerSidePropsFunction · 0.90

Calls 3

RedirectToFunction · 0.90
appendProtocolFunction · 0.90
buildThreadUrlFunction · 0.85

Tested by

no test coverage detected