diff --git a/js/headfoot.js b/js/headfoot.js
index b5029d8cab621e47e21ff6e269542657ca18e35e..1606697dffd1cc29d058c2d5b2498636ae83e152 100755
--- a/js/headfoot.js
+++ b/js/headfoot.js
@@ -11,7 +11,7 @@ function prependChild(parent,child){
 }
 
 function userAuthenticated(){
-    console.log(document.getElementById('loginswitch'));
+    console.log(document.getElementById('loginswitch').href);
     let params = new URLSearchParams(window.location.search);
     if(params.get('isAuthenticatedUser')){
         return true;