From 6ef339008062c0cfddb627fb197a08c0f55d068b Mon Sep 17 00:00:00 2001 From: Philipp Mundhenk Date: Sun, 26 May 2024 17:14:58 +0200 Subject: [PATCH] adding support for snappymail in subdirectories --- plugins/proxy-auth/js/auto-login.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/proxy-auth/js/auto-login.js b/plugins/proxy-auth/js/auto-login.js index 6d2c72b1c..ba5e0e617 100644 --- a/plugins/proxy-auth/js/auto-login.js +++ b/plugins/proxy-auth/js/auto-login.js @@ -11,11 +11,11 @@ ForwardProxyAuth = () => { if (auto_login) { var xhr = new XMLHttpRequest(); - xhr.open("GET", "/?UserHeaderSet", true); + xhr.open("GET", "?UserHeaderSet", true); xhr.onreadystatechange = function () { if (xhr.readyState == 4 && xhr.status == 200) { - window.location.href = "/?ProxyAuth"; + window.location.href = "?ProxyAuth"; } };