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

@@ -27,6 +27,7 @@
<script>
import { onMount } from 'svelte'
import { stores } from '@sapper/app'
import {
currentLocation,
currentPhotos,
@@ -55,6 +56,7 @@
// Props and variables
export let photos
const { page } = stores()
// Reset current location if existing
$: {
@@ -76,7 +78,7 @@
<title>{$site.seo_name} - {$site.seo_title_default} planet Earth</title>
<meta name="description" content={$site.seo_description_default}>
<SocialMetas
url="https://housesof.world"
url="https://{$page.host}"
title="{$site.seo_name} - {$site.seo_title_default} planet Earth"
description={$site.seo_description_default}
image={$site.seo_share_image.full_url}