diff --git a/js/headfoot.js b/js/headfoot.js
index 4c962580b42f7f3aacf3a30f26631273780adfea..6f2754731eeb0cafbfd0ccc09a579e2b7d05facd 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.setAttribute('th:action',"@{logout}");
+                headlink.setAttribute('th:action',"@{/logout}");
                 headlink.setAttribute('method',"post");
                 headlink.removeAttribute('href');
             }