Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

366 B
Raw Blame
import { taskDetailPath } from './taskDetailPath';

export const canonicalTaskPath = (input: {
  aid?: string;
  hash: string;
  taskRef: string;
  search: string;
  title?: string | null;
  workspaceSlug?: string;
}) =>
  `${input.workspaceSlug ? `/${input.workspaceSlug}` : ''}${taskDetailPath(input.taskRef, input.aid, input.title)}${input.search}${input.hash}`;