diff --git a/js/headfoot.js b/js/headfoot.js
index 8507da0f222ccc9dfe5a3d7975e912624dd6ff9d..0db98174c87ccf12350a9a783591d9ba28d504d0 100755
--- a/js/headfoot.js
+++ b/js/headfoot.js
@@ -96,7 +96,7 @@ function head(){
                 headlink.href="/account/";
             }else if(document.getElementById('loginswitch').getAttribute('authenticated') == '2'){
                 headlink.innerHTML="Logout";
-                headlink.href="/logout";
+                headlink.href="./logout";
             }
             
         }