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

Fixkamo-shared-library
Shipped
6 Julai 2026, 20:37 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

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei