Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

375 B
Raw Blame
import type { DayRouteTarget } from '../../../../components/Planner/dayRouteApps';

/** Opens a target: a web link in a new tab (the app takes it over), geo: in place. */
export function openRouteTarget(target: DayRouteTarget): void {
  if (target.url.startsWith('geo:')) window.location.assign(target.url);
  else window.open(target.url, '_blank', 'noopener,noreferrer');
}