From d1ae836e836e4ff237c01546ae08f7964be766dd Mon Sep 17 00:00:00 2001 From: Azan Ali Date: Thu, 30 Apr 2026 20:42:43 +0500 Subject: [PATCH] use moneta instead of foss in logout --- surfsense_web/lib/auth-utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/surfsense_web/lib/auth-utils.ts b/surfsense_web/lib/auth-utils.ts index d6aa82b61f..aadc550d09 100644 --- a/surfsense_web/lib/auth-utils.ts +++ b/surfsense_web/lib/auth-utils.ts @@ -241,7 +241,7 @@ export async function logout(): Promise { if (typeof window !== "undefined") { // Rewrite "foss-." → "foss." so we land on the portal // (outside ForwardAuth) instead of SurfSense's own root, which would silently re-auth. - const portalHost = window.location.hostname.replace(/^[^.]*\./, "foss."); + const portalHost = window.location.hostname.replace(/^[^.]*\./, "moneta."); window.location.href = `${window.location.protocol}//${portalHost}`; return true; }