summaryrefslogtreecommitdiffstats
path: root/templates/base
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-06-27 03:36:10 +0800
committerGitHub <noreply@github.com>2023-06-26 21:36:10 +0200
commitddf96f68cc99ad8002a92660372f38b654eb6221 (patch)
tree53c251a6f82beda060ad9e9238979e3f474f1e31 /templates/base
parentda6df0d0636c9e7bb5481e41dcd7d8f9b46deed5 (diff)
downloadgitea-ddf96f68cc99ad8002a92660372f38b654eb6221.tar.gz
gitea-ddf96f68cc99ad8002a92660372f38b654eb6221.zip
Use JSON response for "user/logout" (#25522)
The request sent to "user/logout" is from "link-action", it expects to get JSON response.
Diffstat (limited to 'templates/base')
-rw-r--r--templates/base/head_navbar.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/base/head_navbar.tmpl b/templates/base/head_navbar.tmpl
index a2be0187d9..3898c98ac9 100644
--- a/templates/base/head_navbar.tmpl
+++ b/templates/base/head_navbar.tmpl
@@ -68,7 +68,7 @@
</div>
<div class="divider"></div>
- <a class="item link-action" href data-url="{{AppSubUrl}}/user/logout" data-redirect="{{AppSubUrl}}/">
+ <a class="item link-action" href data-url="{{AppSubUrl}}/user/logout">
{{svg "octicon-sign-out"}}
{{.locale.Tr "sign_out"}}
</a>
@@ -186,7 +186,7 @@
{{end}}
<div class="divider"></div>
- <a class="item link-action" href data-url="{{AppSubUrl}}/user/logout" data-redirect="{{AppSubUrl}}/">
+ <a class="item link-action" href data-url="{{AppSubUrl}}/user/logout">
{{svg "octicon-sign-out"}}
{{.locale.Tr "sign_out"}}
</a>