fix: add locale to home icon breadcrumb nav (#7825)

pull/7445/merge
StofnerP 7 months ago committed by GitHub
parent 8b358fc264
commit 077ac97b2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -537,13 +537,14 @@ export default {
}
},
breadcrumbs() {
return [{ path: '/', name: 'Home' }].concat(_.reduce(this.path.split('/'), (result, value, key) => {
result.push({
path: _.get(_.last(result), 'path', `/${this.locale}`) + `/${value}`,
name: value
})
return result
}, []))
return [{ path: `/${this.locale}`, name: 'Home' }].concat(
_.reduce(this.path.split('/'), (result, value) => {
result.push({
path: _.get(_.last(result), 'path') + `/${value}`,
name: value
})
return result
}, []))
},
pageUrl () { return window.location.href },
upBtnPosition () {

Loading…
Cancel
Save