canoncial
All checks were successful
deploy to production / deploy (push) Successful in 47s

This commit is contained in:
Robin Grenzdörfer 2023-11-19 18:04:16 +00:00
parent 86d5449213
commit 86d8720c00
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import configClient from "../../api/hooks/config-client" import configClient from "../../api/hooks/config-client"
export const apiBaseURL = "/api/" export const apiBaseURL = "/api/"
export const baseURL = "https://www.fontis.de"
export const release = configClient.release export const release = configClient.release
console.log("Release: ", release) console.log("Release: ", release)

View File

@ -2,7 +2,7 @@
import { mediaLibrary, pages, scrollToRowNr, team } from "../../store" import { mediaLibrary, pages, scrollToRowNr, team } from "../../store"
import Homepage from "./Homepage.svelte" import Homepage from "./Homepage.svelte"
import Pagebuilder from "./Pagebuilder.svelte" import Pagebuilder from "./Pagebuilder.svelte"
import { apiBaseURL } from "../../../config" import { apiBaseURL, baseURL } from "../../../config"
import { onMount } from "svelte" import { onMount } from "svelte"
export let path: string export let path: string
@ -71,6 +71,7 @@
{#if page?.active === false} {#if page?.active === false}
<meta name="robots" content="noindex" /> <meta name="robots" content="noindex" />
{/if} {/if}
<link rel="canonical" href="{baseURL + page.path}" />
{/key} {/key}
</svelte:head> </svelte:head>
<div class="rows" class:HP="{path == '/'}"> <div class="rows" class:HP="{path == '/'}">