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

pull/7445/merge
StofnerP 8 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() { breadcrumbs() {
return [{ path: '/', name: 'Home' }].concat(_.reduce(this.path.split('/'), (result, value, key) => { return [{ path: `/${this.locale}`, name: 'Home' }].concat(
result.push({ _.reduce(this.path.split('/'), (result, value) => {
path: _.get(_.last(result), 'path', `/${this.locale}`) + `/${value}`, result.push({
name: value path: _.get(_.last(result), 'path') + `/${value}`,
}) name: value
return result })
}, [])) return result
}, []))
}, },
pageUrl () { return window.location.href }, pageUrl () { return window.location.href },
upBtnPosition () { upBtnPosition () {

Loading…
Cancel
Save