fix: breadcrumb path generation

pull/7888/head
Nicolas Giard 1 month ago committed by GitHub
parent af839795ae
commit 29c8671ab2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save