diff --git a/src/base/projects/View.svelte b/src/base/projects/View.svelte index aeb77a848..da4fcef4a 100644 --- a/src/base/projects/View.svelte +++ b/src/base/projects/View.svelte @@ -8,7 +8,7 @@ import { Org } from '@app/base/orgs/Org'; import type { Profile } from '@app/profile'; import type { Info } from '@app/project'; - import { formatOrg } from '@app/utils'; + import { formatOrg, isAddressEqual } from '@app/utils'; import Browser from './Browser.svelte'; @@ -38,6 +38,12 @@ return { project: info, config: cfg, org: orgProfile }; }); + const parentUrl = (profile: Profile) => { + return org === profile.name || isAddressEqual(org, profile.address) + ? `/orgs/${profile.nameOrAddress}` + : `/users/${profile.nameOrAddress}`; + }; + $: if (projectInfo) { if (projectInfo.meta.description) { pageTitle = `${formatOrg(org, config)}/${projectInfo.meta.name}: ${projectInfo.meta.description}`; @@ -106,7 +112,7 @@
{#if result.org} - + /