chore: after signout intead of redirecting to login page we are navigating to the same page where he logged out (#4507)
This commit is contained in:
parent
e3e7c99e11
commit
6f05ec7e74
2 changed files with 7 additions and 6 deletions
|
|
@ -98,6 +98,7 @@ export const UserAvatar: FC = observer(() => {
|
|||
{csrfToken && (
|
||||
<form method="POST" action={`${API_BASE_URL}/auth/spaces/sign-out/`} onSubmit={signOut}>
|
||||
<input type="hidden" name="csrfmiddlewaretoken" value={csrfToken} />
|
||||
<input type="hidden" name="next_path" value={`${pathName}?${queryParam}`} />
|
||||
<button
|
||||
type="submit"
|
||||
className="flex items-center gap-2 rounded p-2 whitespace-nowrap hover:bg-custom-background-80 text-sm min-w-36 cursor-pointer"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue