mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-16 15:02:43 +00:00
Use JSON response for "user/logout" (#25522)
The request sent to "user/logout" is from "link-action", it expects to get JSON response.
This commit is contained in:
parent
da6df0d063
commit
ddf96f68cc
3 changed files with 4 additions and 4 deletions
|
@ -383,7 +383,7 @@ func SignOut(ctx *context.Context) {
|
|||
})
|
||||
}
|
||||
HandleSignOut(ctx)
|
||||
ctx.Redirect(setting.AppSubURL + "/")
|
||||
ctx.JSONRedirect(setting.AppSubURL + "/")
|
||||
}
|
||||
|
||||
// SignUp render the register page
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue