diff --git a/js/headfoot.js b/js/headfoot.js
index 57b9777f21a29347ffa98245bd3af65f98944301..fd1a2eb5536b709d2d0283c752245355d1b6865c 100755
--- a/js/headfoot.js
+++ b/js/headfoot.js
@@ -14,6 +14,8 @@ function userAuthenticated(){
     let params = new URLSearchParams(window.location.search);
     if(params.get('isAuthenticatedUser')){
         return true;
+    }else if(document.getElementById('loginswitch').href == '1'){
+        return true;
     }else{
         return false;
     }