Use server detected host for sharing URLs

This commit is contained in:
2020-03-28 12:48:59 +01:00
parent 3a4b1c2c85
commit fbdbe21dd6
5 changed files with 22 additions and 25 deletions

View File

@@ -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}