Skip to content
HomePagesHomePages template kit

tourEmbedUrl

The embeddable player URL for a pasted 3D-tour link, or `null` when the value is empty, names no provider, names one that is not a tour provider, or is a tour URL the provider's embed form cannot be built from.

The embeddable player URL for a pasted 3D-tour link, or null when the value is empty, names no provider, names one that is not a tour provider, or is a tour URL the provider’s embed form cannot be built from.

Import from @homepages/template-kit.

function tourEmbedUrl(raw: string): string | null
Name Type Required Description
raw string required

string | null

  • Covers every kind: "tour" member of LINK_PROVIDERS. A tour provider added to that catalog without a branch here returns null — an unembeddable slot rather than a wrong iframe — and slot-catalog.test.ts fails on the gap.