fix(dashboard): route the Adapta tutorial CTA through the branded shortener

The Adapta tutorial modal's CTA linked straight to agent.adapta.one, so those
clicks never reached our metrics. Points the href at
https://link.omniroute.online/adapta (the `adapta` slug on our own shortener)
while keeping the visible link text as the real domain, so users still see
where they are going.

Completes the shortener rollout started in #11196 — that PR created the
`adapta` slug but did not wire this callsite.

Provider baseUrl configs that also mention agent.adapta.one are API endpoints
and are deliberately untouched.
This commit is contained in:
Xiangzhe
2026-08-24 01:03:24 -03:00
parent ac02c5b42f
commit 65dd425fc9

View File

@@ -7,6 +7,10 @@ type AdaptaTutorialModalProps = {
onClose: () => void;
};
// The Adapta CTA href points at https://link.omniroute.online/adapta (our own
// shortener, the `adapta` slug) so the click lands in our Kutt metrics. The visible
// link text intentionally stays the real domain (agent.adapta.one/agentic-chat) so
// users still see where they are going.
export function AdaptaTutorialModal({ isOpen, onClose }: AdaptaTutorialModalProps) {
const t = useTranslations("providers.adaptaTutorial");
@@ -29,7 +33,7 @@ export function AdaptaTutorialModal({ isOpen, onClose }: AdaptaTutorialModalProp
<p className="text-text-muted mt-0.5">
{t("step1DescPrefix")}{" "}
<a
href="https://agent.adapta.one/agentic-chat"
href="https://link.omniroute.online/adapta"
target="_blank"
rel="noopener noreferrer"
className="underline text-primary"