Skip to content

⭐️⭐️⭐️ Open-source, self-hosted alternative to Linear and Plane. Project management and issue tracking where teams and AI agents work side by side to plan and ship products.

348 B
Raw Blame
// Points a relative media path (a stored avatar or attachment URL) at the web
// origin's media route (app/media), which streams it from the API. Leaves an
// absolute URL — an embed stored before this, or an external image — untouched.
export function mediaUrl(url: string): string {
  return url.startsWith('http') ? url : `/media${url}`;
}