From fee62d07667dc552f3f680389fad2a4b2a232a22 Mon Sep 17 00:00:00 2001 From: nickviljoen Date: Wed, 22 Apr 2026 18:23:31 +0200 Subject: [PATCH] Keep trailing slash on MSAL redirect URI for deployed envs Azure AD has the trailing-slash form registered for the dev environment. Previously we stripped it, causing AADSTS50011 on first sign-in. Local dev (localhost) still uses no-path form. Co-Authored-By: Claude Opus 4.7 (1M context) --- web_ui.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web_ui.html b/web_ui.html index 5bbfedd..6a62b70 100644 --- a/web_ui.html +++ b/web_ui.html @@ -4269,7 +4269,7 @@ // Handle both localhost and 127.0.0.1 for local development redirectUri: (window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1') ? 'http://localhost:7183' - : window.location.origin + window.location.pathname.replace(/\/$/, '') + : window.location.origin + window.location.pathname }, cache: { cacheLocation: "localStorage",