Metatags in svelte pages aren't considered by Discord, but it works when I put it in app.html, but I can't make website embed on discord dynamic anymore #10681
Metatags in svelte pages aren't considered by Discord, but it works when I put it in app.html, but I can't make website embed on discord dynamic anymore.
+layout.svelte // Don't work
<MetaTags
title="Persona DB"
description="Find and host any original characters"
keywords={'persona, db, database, oc, ocs, original character, nekomancer, host, discover, fursona, fursonas, videogame, video, games, game, video games, hosting, character, characters, fictional, fantasy, isekai, anime, animes, mangas, create, add, manga, weeb, otaku, furry, furries, dragons, protogen, sergal, dragon, kemono, fan'.split(
', '
)}
openGraph={{
type: 'website',
url: new URL($page.url.pathname, $page.url.origin).href,
locale: 'en_IE',
title: 'Persona DB',
description: 'Find and host any original characters',
images: [
{
url: 'https://persona-db.xyz/favicon.png',
width: 700,
height: 700,
alt: 'favicon'
}
]
}}
/>
profile/+page.svelte // Don't work
<svelte:head>
<title>Persona - My Profile</title>
<meta name="author" content="Persona DB - My Profile" />
<meta name="description" content="Find and host any original characters" />
<meta property="og:title" content="Persona DB" />
<meta property="og:description" content="Find and host any original characters" />
<meta property="og:image" content="https://persona-db.xyz/favicon.png" />
</svelte:head>
Only when I put the metatags in the app.html it works, but otherwise it doesn't show the embed when I put them in the svelte pages, while metatags are shown in the devtools of my browser.
Describe the bug
Metatags in svelte pages aren't considered by Discord, but it works when I put it in app.html, but I can't make website embed on discord dynamic anymore.
+layout.svelte // Don't work
profile/+page.svelte // Don't work
Only when I put the metatags in the app.html it works, but otherwise it doesn't show the embed when I put them in the svelte pages, while metatags are shown in the devtools of my browser.
Reproduction
https://github.com/nekomancer0/Persona-db
Logs
No response
System Info
Severity
annoyance