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) <noreply@anthropic.com>
This commit is contained in:
nickviljoen 2026-04-22 18:23:31 +02:00
parent c4a578500c
commit fee62d0766

View file

@ -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",