diff --git a/src/.vuepress/components/Bar.vue b/src/.vuepress/components/Bar.vue index 441d5b42d843ec61ba4bed4f67265d3d2d37e86f..ed845d244a6b20bb50109a2e9925e02f76634bf3 100644 --- a/src/.vuepress/components/Bar.vue +++ b/src/.vuepress/components/Bar.vue @@ -53,7 +53,7 @@ <v-list-item v-for="(item, index) in editions" :key="index" - :href="item.to + path" + :href="item.to + getPath()" > <v-list-item-title>{{ item.title }}</v-list-item-title> </v-list-item> @@ -90,15 +90,11 @@ export default { { title: 'Edition guidelines', to: '/editionguidelines.html' }, { title: 'Related Literature', to: '/relatedliterature.html' }, ], - origin:'', }), - mounted(){ - this.origin = window?.location?.origin; - }, - computed:{ - path(){ - return this.origin + this.$route.path; + methods:{ + getPath(){ + return window?.location?.origin + window?.location?.pathname; } - }, + } } </script> diff --git a/src/.vuepress/components/Cta.vue b/src/.vuepress/components/Cta.vue index b6b765b26f4ffe49c52d407472f5b12b5234d0b3..7394fd8d36867e5da28d7a9ae1e5339d5cd3007c 100755 --- a/src/.vuepress/components/Cta.vue +++ b/src/.vuepress/components/Cta.vue @@ -9,7 +9,7 @@ > <a class="white--text text-overline text-decoration-none text-uppercase" - :href="editionSyriac.to" + :href="editionSyriac.to + getPath()" :title="editionSyriac.title" role="link" tabindex="0" @@ -26,7 +26,7 @@ > <a class="white--text text-overline text-decoration-none text-uppercase" - :href="editionArabic.to" + :href="editionArabic.to + getPath()" :title="editionArabic.title" role="link" tabindex="0" @@ -45,6 +45,11 @@ export default { data: () => ({ editionSyriac: editionLinks[0], editionArabic: editionLinks[1] - }) + }), + methods:{ + getPath(){ + return window?.location?.origin + window?.location?.pathname; + } + } } </script> diff --git a/src/.vuepress/theme/layouts/Edition.vue b/src/.vuepress/theme/layouts/Edition.vue index 895bad90d1003f9966809211cc121cc46bbbcede..ed25bf40b959928cb3ab2bbfa20eb72dcf86cddc 100644 --- a/src/.vuepress/theme/layouts/Edition.vue +++ b/src/.vuepress/theme/layouts/Edition.vue @@ -1,6 +1,8 @@ <template> <v-app> - <Bar/> + <client-only> + <Bar/> + </client-only> <v-main> <Content/> </v-main> diff --git a/src/.vuepress/theme/layouts/Home.vue b/src/.vuepress/theme/layouts/Home.vue index 58a7c707d944c56e7cc080e8e98b2fe4ac1bf87a..b26451b571117ac112bd0f8649fb441526b2ac54 100644 --- a/src/.vuepress/theme/layouts/Home.vue +++ b/src/.vuepress/theme/layouts/Home.vue @@ -1,6 +1,8 @@ <template> <v-app> - <Bar/> + <client-only> + <Bar/> + </client-only> <v-main> <v-container> <Content/> diff --git a/src/.vuepress/theme/layouts/Layout.vue b/src/.vuepress/theme/layouts/Layout.vue index 58a7c707d944c56e7cc080e8e98b2fe4ac1bf87a..b26451b571117ac112bd0f8649fb441526b2ac54 100644 --- a/src/.vuepress/theme/layouts/Layout.vue +++ b/src/.vuepress/theme/layouts/Layout.vue @@ -1,6 +1,8 @@ <template> <v-app> - <Bar/> + <client-only> + <Bar/> + </client-only> <v-main> <v-container> <Content/> diff --git a/src/de/index.md b/src/de/index.md index 974d62a53f5616f8acbc1feddd5f029014215c5d..044cea82fce2cf0dbb24c70a6469f7dfe369fe36 100755 --- a/src/de/index.md +++ b/src/de/index.md @@ -14,7 +14,9 @@ Lorem ipsum dolor sit amut.{.body-1} ## Editions {.text-h3 .mb-4 .secondary--text} -<Cta/> +<client-only> + <Cta/> +</client-only> ## Contact {.text-h3 .mb-4 .secondary--text} diff --git a/src/index.md b/src/index.md index fa767d56e35c2fc0cfc94336e334641f329f75ef..a7b78a7cdb1ee0e196a3fb68ffee400b298c0c64 100755 --- a/src/index.md +++ b/src/index.md @@ -16,7 +16,9 @@ The edition focuses on the textual and literary analysis of the Syriac and Arabi ## Collections {.text-h3 .mb-4 .secondary--text} -<Cta/> +<client-only> + <Cta/> +</client-only> ## Contact {.text-h3 .mb-4 .secondary--text}