KamoCRM

Resolve the org's real hostname and logo extension for the letterhead

Fixkamo-shared-library
Shipped
4 ஆகஸ்ட், 2026 அன்று 8:07 PM UTC
Author
Kamo
Commit
ec34eab

Correcting the theme URL was necessary but not sufficient — the logo still did not render, for two further reasons found in the live data. org_domains stores an org's subdomain records as bare labels beside its apex. KamoCRM Inc. holds upload, www, mail, api … and kamocrm.com, all active and verified, so taking the first verified row returned "upload". That is not a host: it yielded no logo, and it would have addressed share links at sign.upload. Only fully-qualified rows are eligible now, still preferring verified over unverified. Separately that org has logo_full_ext NULL even though logo-full.svg exists in its bucket, so requiring the column left the letterhead as plain text. It now defaults to svg, which is what the client already does. Both resolved URLs verified live: 200 image/svg+xml.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing