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

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

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

Loading…
Cancel
Save