fix(org): show org logo for favicon and OG image (#713)
When no custom favicon is set, fall back to the organization logo on public org-site pages instead of the default ClassroomIO icon. For OG images, only apply the theme-color background behind the logo when rendering initials; real logo images now render without the tint. Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: Rotimi Best <[email protected]>
This commit is contained in:
co-authored by
Cursor Agent
Rotimi Best
parent
3d15bc0a01
commit
22a3e6484b
@@ -1,5 +1,6 @@
|
||||
<script lang="ts">
|
||||
import type { AccountOrg } from '$features/app/types';
|
||||
import { page } from '$app/state';
|
||||
import { getOrgFaviconHref } from '$lib/utils/functions/org-branding';
|
||||
|
||||
interface Props {
|
||||
@@ -8,11 +9,13 @@
|
||||
|
||||
let { org }: Props = $props();
|
||||
|
||||
const faviconHref = $derived(getOrgFaviconHref(org));
|
||||
const faviconHref = $derived(getOrgFaviconHref(org, page.url.origin));
|
||||
</script>
|
||||
|
||||
<svelte:head>
|
||||
{#if faviconHref}
|
||||
<link rel="icon" href={faviconHref} />
|
||||
<link rel="shortcut icon" href={faviconHref} />
|
||||
<link rel="apple-touch-icon" href={faviconHref} />
|
||||
{/if}
|
||||
</svelte:head>
|
||||
|
||||
Reference in New Issue
Block a user