diff --git a/packages/frontend-2/components/error/page/WorkspaceAccessErrorBlock.vue b/packages/frontend-2/components/error/page/WorkspaceAccessErrorBlock.vue index 7f48f4cd47..fdf928fd17 100644 --- a/packages/frontend-2/components/error/page/WorkspaceAccessErrorBlock.vue +++ b/packages/frontend-2/components/error/page/WorkspaceAccessErrorBlock.vue @@ -13,16 +13,19 @@ const route = useRoute() const logger = useLogger() const token = computed(() => route.query.token as Optional) -const workspaceId = computed(() => route.params.id as Optional) +const workspaceSlug = computed(() => route.params.slug as Optional) const isWorkspacesEnabled = useIsWorkspacesEnabled() const { result } = useQuery( workspaceInviteQuery, () => ({ - workspaceId: workspaceId.value, - token: token.value + workspaceId: workspaceSlug.value, + token: token.value, + options: { + useSlug: true + } }), - () => ({ enabled: !!(workspaceId.value && isWorkspacesEnabled.value) }) + () => ({ enabled: !!(workspaceSlug.value && isWorkspacesEnabled.value) }) ) const invite = computed(() => result.value?.workspaceInvite) diff --git a/packages/frontend-2/components/workspace/ProjectList.vue b/packages/frontend-2/components/workspace/ProjectList.vue index bf79ab9302..2e93a5505f 100644 --- a/packages/frontend-2/components/workspace/ProjectList.vue +++ b/packages/frontend-2/components/workspace/ProjectList.vue @@ -65,7 +65,7 @@ - +