You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My titles are not updating when I navigate the site.
Reproduction
I have a component for meta tags:
<script>
export let title = 'chovy\'s boondocking guide';
export let path = '/';
</script>
<title>{title} - chovy's boondocking guide</title>
I use it like this on a page:
<script>
import Meta from '$components/meta.svelte';
const title = 'Mobile Internet Access for Boondocking';
const path = '/guides/mofi';
</script>
<svelte:head>
<Meta {title} {path} />
</svelte:head>
If I refresh the page the title is correct, but navigation via links without refresh does not update the title.
benmccann
changed the title
trouble with <svelte:head> and adapter-static
duplicate title tags being rendered - title not updating when navigating pages
Aug 4, 2021
my component handles the data. which gets passed the values from each page. Putting it in the layout would make it the same on every page. Obviously I want to customize title and meta tags per page.
Describe the bug
My titles are not updating when I navigate the site.
Reproduction
I have a component for meta tags:
I use it like this on a page:
If I refresh the page the title is correct, but navigation via links without refresh does not update the title.
Logs
System Info
The text was updated successfully, but these errors were encountered: