@fy-/fws-vue 1.5.2 → 1.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -31,10 +31,8 @@ export interface LazyHead {
31
31
  export const useSeo = (seo: Ref<LazyHead>, initial: boolean = false) => {
32
32
  const route = useRoute();
33
33
  const currentLocale = seo.value.locale || getLocale();
34
- const actualCurrentURL = computed(() =>
35
- seo.value.canonical
36
- ? seo.value.canonical
37
- : `${getURL().Scheme}://${getURL().Host}${route.fullPath}`,
34
+ const actualCurrentURL = computed(
35
+ () => `${getURL().Scheme}://${getURL().Host}${route.fullPath}`,
38
36
  );
39
37
  useFyHead({
40
38
  title: computed(() => seo.value.title),
@@ -78,7 +76,10 @@ export const useSeo = (seo: Ref<LazyHead>, initial: boolean = false) => {
78
76
 
79
77
  metas.push(
80
78
  { property: "og:locale", content: currentLocale },
81
- { property: "og:url", content: seo.value.url || currentUrl },
79
+ {
80
+ property: "og:url",
81
+ content: seo.value.url ? seo.value.url : actualCurrentURL.value,
82
+ },
82
83
  { property: "og:type", content: seo.value.type || "website" },
83
84
  {
84
85
  name: "robots",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "1.5.2",
3
+ "version": "1.5.4",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "repository": {