Skip to content

Commit

Permalink
OPHJOD-937: Update logout path
Browse files Browse the repository at this point in the history
  • Loading branch information
ketsappi committed Dec 3, 2024
1 parent 5c1a53d commit 49ed970
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ exports[`NavigationBar > renders no navigation items and no user 1`] = `
class="relative"
>
<form
action="/logout"
action="/yksilo/logout"
hidden=""
method="POST"
>
Expand Down Expand Up @@ -119,7 +119,7 @@ exports[`NavigationBar > renders only user 1`] = `
class="relative"
>
<form
action="/logout"
action="/yksilo/logout"
hidden=""
method="POST"
>
Expand Down
2 changes: 1 addition & 1 deletion src/components/UserButton/UserButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const UserButton = () => {

return data?.csrf ? (
<div className="relative">
<form action="/logout" method="POST" hidden ref={logoutForm}>
<form action="/yksilo/logout" method="POST" hidden ref={logoutForm}>
<input type="hidden" name="_csrf" value={data?.csrf.token} />
<input type="hidden" name="lang" value={language} />
</form>
Expand Down

0 comments on commit 49ed970

Please sign in to comment.