diff --git a/web2/htdocs/js/lib.js b/web2/htdocs/js/lib.js
index <HASH>..<HASH> 100644
--- a/web2/htdocs/js/lib.js
+++ b/web2/htdocs/js/lib.js
@@ -290,6 +290,16 @@
   })();
   // }}}
 
+  /***************************************************
+    website() - Return the base URL of this SHIELD, per document.location
+  ***************************************************/
+  exported.website = function () { // {{{
+    return document.location.toString().replace(/#.*/, '').replace(/\/$/, '');
+  }
+  // }}}
+
+
+
 
   /***************************************************
     $(...).serializeObject()
Put website() function back into js code

authentication provider configuration could not be shown in the UI
because this function was missing. It's back now.