Skip to content

Commit

Permalink
chore: update NaviSide explore and notifications links
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Sep 25, 2024
1 parent 45b2c10 commit f4430b7
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions components/nav/NavSide.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,21 @@ const notificationsLink = computed(() => {
return '/notifications'
}
return `/notifications/${lastAccessedNotificationRoute}`
return `/notifications/${lastRoute}`
})
const exploreLink = computed(() => {
const hydrated = isHydrated.value
const server = currentServer.value
const lastRoute = lastAccessedExploreRoute.value
if (!hydrated || !server || !lastRoute) {
let lastRoute = lastAccessedExploreRoute.value
if (!hydrated) {
return '/explore'
}
return server ? `/${server}/explore/${lastRoute}` : `/explore/${lastRoute}`
if (lastRoute.length) {
lastRoute = `/${lastRoute}`
}
return server ? `/${server}/explore${lastRoute}` : `/explore${lastRoute}`
})
</script>

Expand Down

0 comments on commit f4430b7

Please sign in to comment.