KamoCRM

Resolve org-by-domain with a deepest-label alias fallback

Fixkamo-shared-library
Shipped
6 ஜூலை, 2026 அன்று 8:37 PM UTC
Author
Kamo
Commit
41255c5

Add **************** exact domain match, then drop the deepest label once (register.optionone.com -> optionone.com) so a per-org register/branding subdomain resolves to its owning org even when only the apex is a registered OrgDomain. Fails closed (empty) on a blank/unknown host — it never resolves to a default/platform org. This is the resolver behind the fix for self-registrations on register.<org>.com being filed under kamocrm instead of <org>.

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