diff --git a/js/headfoot.js b/js/headfoot.js
index 620fcb00e0e313aa2801b164fac9848b21c437ed..8507da0f222ccc9dfe5a3d7975e912624dd6ff9d 100755
--- a/js/headfoot.js
+++ b/js/headfoot.js
@@ -96,8 +96,7 @@ function head(){
                 headlink.href="/account/";
             }else if(document.getElementById('loginswitch').getAttribute('authenticated') == '2'){
                 headlink.innerHTML="Logout";
-                headlink.setAttribute('th:action',"@{/logout}");
-                headlink.setAttribute('method',"post");
+                headlink.href="/logout";
             }
             
         }