Use server detected host for sharing URLs
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<script>
|
||||
import { onMount } from 'svelte'
|
||||
import { stores } from '@sapper/app'
|
||||
import {
|
||||
site,
|
||||
currentLocation,
|
||||
@@ -20,6 +21,9 @@
|
||||
import { animateIn } from '../animations/page'
|
||||
pageTransition.onAnimationEnd = animateIn
|
||||
|
||||
// Variables
|
||||
const { page } = stores()
|
||||
|
||||
|
||||
// Reset current location if existing
|
||||
$: {
|
||||
@@ -41,7 +45,7 @@
|
||||
<title>{$site.seo_name} - {$site.seo_title_default} of planet Earth</title>
|
||||
<meta name="description" content={$site.description}>
|
||||
<SocialMetas
|
||||
url="https://housesof.world"
|
||||
url="https://{$page.host}/choose"
|
||||
title="{$site.seo_name} - {$site.seo_title_default} planet Earth"
|
||||
description={$site.seo_description_default}
|
||||
image={$site.seo_share_image.full_url}
|
||||
|
||||
Reference in New Issue
Block a user