We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71f8004 commit 5dd4231Copy full SHA for 5dd4231
src/plugins/seo.js
@@ -14,6 +14,7 @@ Vue.mixin({
14
}
15
const LOCALE_CODE_KEY = '<%= options.LOCALE_CODE_KEY %>'
16
const LOCALE_ISO_KEY = '<%= options.LOCALE_ISO_KEY %>'
17
+ const BASE_URL = '<%= options.baseUrl %>'
18
19
// Prepare html lang attribute
20
const currentLocaleData = this.$i18n.locales.find(l => l[LOCALE_CODE_KEY] === this.$i18n.locale)
@@ -29,7 +30,7 @@ Vue.mixin({
29
30
return {
31
hid: 'alternate-hreflang-' + locale[LOCALE_ISO_KEY],
32
rel: 'alternate',
- href: this.switchLocalePath(locale.code),
33
+ href: BASE_URL + this.switchLocalePath(locale.code),
34
hreflang: locale[LOCALE_ISO_KEY]
35
36
} else {
0 commit comments