diff --git a/frontend/src/components/home/ContentLinkShare.vue b/frontend/src/components/home/ContentLinkShare.vue index 1146bf6be..b59e0fc48 100644 --- a/frontend/src/components/home/ContentLinkShare.vue +++ b/frontend/src/components/home/ContentLinkShare.vue @@ -112,10 +112,10 @@ watch(() => route.params.projectId, ensureProjectLoaded, { immediate: true }) onMounted(ensureProjectLoaded) function getProjectRoute() { - if (!currentProject.value) return null - + if (!currentProject.value) return undefined + const hash = route.hash // Preserve link share hash - + // Default to the first available view or list view const projectId = currentProject.value.id const firstView = projectStore.projects[projectId]?.views?.[0]