Skip to content

Commit 5051d1b

Browse files
authored
Merge pull request #1994 from appwrite/fix-PRO-1886
fix: header navigation, made route explicit
2 parents 2c59ad3 + 29351f5 commit 5051d1b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib/components/navbar.svelte

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@
119119
beforeNavigate(() => (showAccountMenu = false));
120120
</script>
121121

122-
<Navbar.Base {...$$props}>
122+
<Navbar.Base>
123123
<div slot="left" class="left">
124124
<div class="only-mobile-tablet">
125125
<button
@@ -130,7 +130,9 @@
130130
<Icon icon={IconMenuAlt4} />
131131
</button>
132132
</div>
133-
<a href={base} class="only-desktop">
133+
<a
134+
href={currentOrg?.$id ? `${base}/organization-${currentOrg?.$id}` : base}
135+
class="only-desktop">
134136
<img src={logo.src} alt={logo.alt} />
135137
</a>
136138
<Breadcrumbs {organizations} />

0 commit comments

Comments
 (0)