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