Skip to content

Commit

Permalink
fix: logout link
Browse files Browse the repository at this point in the history
  • Loading branch information
hmbanan666 committed Jun 25, 2024
1 parent b713aaf commit 713d9c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/lib/components/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@

<nav>
<ul>
<li aria-current={$page.url.pathname === '/' ? 'page' : undefined}>
<li aria-current={$page.url.pathname === `/${locale}` ? 'page' : undefined}>
<a href='/{locale}'>{t.header.menu.home}</a>
</li>
<li aria-current={$page.url.pathname === '/about' ? 'page' : undefined}>
<li aria-current={$page.url.pathname === `/${locale}/about` ? 'page' : undefined}>
<a href='/{locale}/about'>{t.header.menu.about}</a>
</li>
<li aria-current={$page.url.pathname === '/character' ? 'page' : undefined}>
<li aria-current={$page.url.pathname === `/${locale}/character` ? 'page' : undefined}>
<a href='/{locale}/character'>{t.header.menu.characters}</a>
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Profile.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
const isSignedIn = !!$page.data.profile
const handleSignOut = () => {
void fetch('/en/auth/profile', {
void fetch('/auth/profile', {
method: 'DELETE',
headers: {
'content-type': 'application/json',
Expand Down

0 comments on commit 713d9c6

Please sign in to comment.