From 9dba8167437ef87ae2091441363751338da2db69 Mon Sep 17 00:00:00 2001 From: Wolfgang Knopki <wolfgang.knopki@hft-stuttgart.de> Date: Tue, 22 Oct 2019 14:06:44 +0200 Subject: [PATCH] test dynamic header --- js/headfoot.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/headfoot.js b/js/headfoot.js index 45fe882..a1aecda 100755 --- a/js/headfoot.js +++ b/js/headfoot.js @@ -95,8 +95,7 @@ function head(){ headlink.innerHTML="Account"; headlink.href="/account/"; }else if(document.getElementById('loginswitch').getAttribute('authenticated') == '2'){ - headlink.setAttribute("th:onclick", "@{/logout}"); - headlink.removeAttribute("href"); + headlink.href="./logout"; headlink.innerHTML="Logout"; } -- GitLab