Skip to content

Commit 9c60f25

Browse files
committed
fix: logo click
1 parent 41ea5de commit 9c60f25

2 files changed

Lines changed: 8 additions & 3 deletions

File tree

new-deepnotes/apps/web/src/components/NavBar.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ import { isDark } from "@/features/theme/useThemePreference";
99
1010
const { isAuthenticated, bootstrapped, loading, logout } = useSession();
1111
12+
const marketingUrl = import.meta.env.VITE_MARKETING_APP_URL?.trim().replace(/\/$/, "") || "https://deepnotes.app";
13+
1214
async function onLogout() {
1315
await logout();
1416
}
@@ -22,8 +24,8 @@ async function onLogout() {
2224
class="mx-auto flex h-14 max-w-5xl items-center justify-between px-4 md:px-6"
2325
>
2426
<div class="flex items-center gap-6">
25-
<RouterLink
26-
to="/"
27+
<a
28+
:href="marketingUrl"
2729
class="flex items-center gap-2 text-lg font-semibold tracking-tight transition-opacity hover:opacity-80"
2830
>
2931
<img
@@ -32,7 +34,7 @@ async function onLogout() {
3234
class="h-7 w-7"
3335
/>
3436
DeepNotes
35-
</RouterLink>
37+
</a>
3638

3739
<nav
3840
v-if="bootstrapped && isAuthenticated"

new-deepnotes/template.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,6 @@ REDIS_URL=redis://localhost:6380
3737

3838
# Realtime USER_NOTIFICATION fan-out (per-user Durable Object); internal push from worker after notifyUsers
3939
# REALTIME_INTERNAL_SECRET=
40+
41+
# Marketing site URL
42+
# VITE_MARKETING_APP_URL=https://deepnotes.app

0 commit comments

Comments
 (0)