From 6c76bea3e840bbe75dbddb167a8f9ecda410e8b9 Mon Sep 17 00:00:00 2001 From: Jeremiah Lowin <153965+jlowin@users.noreply.github.com> Date: Wed, 25 Mar 2026 11:39:25 -0400 Subject: [PATCH] Add tag to deployment pages (#3624) --- docs/unify-intent.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/docs/unify-intent.js b/docs/unify-intent.js index 25eafe494..b51e57b5a 100644 --- a/docs/unify-intent.js +++ b/docs/unify-intent.js @@ -1,10 +1,16 @@ -// Load Unify intent tag on authentication pages only +// Load Unify intent tag on selected pages (function () { if (typeof window === "undefined") return; - function isAuthPage() { + function isTaggedPage() { var path = window.location.pathname; - return path.includes("/servers/auth/") || path.includes("/clients/auth/"); + return ( + path.includes("/servers/auth/") || + path.includes("/clients/auth/") || + path.includes("/deployment/running-server") || + path.includes("/deployment/http") || + path.includes("/deployment/prefect-horizon") + ); } function loadUnify() { @@ -45,9 +51,9 @@ } function update() { - if (isAuthPage() && !document.getElementById("unifytag")) { + if (isTaggedPage() && !document.getElementById("unifytag")) { loadUnify(); - } else if (!isAuthPage() && document.getElementById("unifytag")) { + } else if (!isTaggedPage() && document.getElementById("unifytag")) { document.getElementById("unifytag").remove(); } }