),
},
{
key: "trip",
label: __("Trip"),
sortable: true,
visible: visibleColumns.trip,
render: (booking: Booking) => {
// Link to the tour's PUBLIC single page (opens in a new tab), not the
// tour editor — a booking overview should never be a one-click path to
// editing the underlying tour. Without a slug we can't build the public
// URL, so the name is shown as plain text rather than falling back to
// the editor.
const slug = booking.trip_slug || "";
let tourUrl = "";
if (slug) {
const { plainUrl, prettyUrl } = buildYatraSinglePublicUrls({
entity: "trip",
slug,
});
tourUrl = isWordPressPlainPermalink() ? plainUrl : prettyUrl;
}
return (