vue-i18n-routing
Advanced tools
Comparing version 0.12.2-ac2ae4d to 0.12.2-d8828c8
@@ -816,3 +816,10 @@ var VueI18nRouting = function(exports, VueRouter3, vueDemi, vueI18nBridge) { | ||
addHreflangLinks.call(this, locales, vueDemi.unref(i18n.baseUrl), metaObject.link, identifierAttribute); | ||
addCanonicalLinks.call(this, vueDemi.unref(i18n.baseUrl), metaObject.link, identifierAttribute, addSeoAttributes); | ||
addCanonicalLinksAndOgUrl.call( | ||
this, | ||
vueDemi.unref(i18n.baseUrl), | ||
metaObject.link, | ||
metaObject.meta, | ||
identifierAttribute, | ||
addSeoAttributes | ||
); | ||
addCurrentOgLocale(currentLocale, currentLocaleIso, metaObject.meta, identifierAttribute); | ||
@@ -865,3 +872,3 @@ addAlternateOgLocales(locales, currentLocaleIso, metaObject.meta, identifierAttribute); | ||
} | ||
function addCanonicalLinks(baseUrl, link, identifierAttribute, seoAttributesOptions) { | ||
function addCanonicalLinksAndOgUrl(baseUrl, link, meta, identifierAttribute, seoAttributesOptions) { | ||
const route = this.route; | ||
@@ -898,2 +905,7 @@ const currentRoute = localeRoute.call(this, { | ||
}); | ||
meta.push({ | ||
[identifierAttribute]: "i18n-og-url", | ||
property: "og:url", | ||
content: href | ||
}); | ||
} | ||
@@ -900,0 +912,0 @@ } |
@@ -819,3 +819,10 @@ "use strict"; | ||
addHreflangLinks.call(this, locales, vueDemi.unref(i18n.baseUrl), metaObject.link, identifierAttribute); | ||
addCanonicalLinks.call(this, vueDemi.unref(i18n.baseUrl), metaObject.link, identifierAttribute, addSeoAttributes); | ||
addCanonicalLinksAndOgUrl.call( | ||
this, | ||
vueDemi.unref(i18n.baseUrl), | ||
metaObject.link, | ||
metaObject.meta, | ||
identifierAttribute, | ||
addSeoAttributes | ||
); | ||
addCurrentOgLocale(currentLocale, currentLocaleIso, metaObject.meta, identifierAttribute); | ||
@@ -868,3 +875,3 @@ addAlternateOgLocales(locales, currentLocaleIso, metaObject.meta, identifierAttribute); | ||
} | ||
function addCanonicalLinks(baseUrl, link, identifierAttribute, seoAttributesOptions) { | ||
function addCanonicalLinksAndOgUrl(baseUrl, link, meta, identifierAttribute, seoAttributesOptions) { | ||
const route = this.route; | ||
@@ -901,2 +908,7 @@ const currentRoute = localeRoute.call(this, { | ||
}); | ||
meta.push({ | ||
[identifierAttribute]: "i18n-og-url", | ||
property: "og:url", | ||
content: href | ||
}); | ||
} | ||
@@ -903,0 +915,0 @@ } |
{ | ||
"name": "vue-i18n-routing", | ||
"description": "The i18n routing with using vue-i18n", | ||
"version": "0.12.2-ac2ae4d", | ||
"version": "0.12.2-d8828c8", | ||
"dependencies": { | ||
@@ -6,0 +6,0 @@ "@intlify/shared": "next", |
Sorry, the diff of this file is not supported yet
163693
4510