Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion surfsense_web/lib/auth-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ export async function logout(): Promise<boolean> {
if (typeof window !== "undefined") {
// Rewrite "foss-<app>.<domain>" → "foss.<domain>" 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;
}
Expand Down
Loading