Skip to content

Commit 077ac97

Browse files
authored
fix: add locale to home icon breadcrumb nav (#7825)
1 parent 8b358fc commit 077ac97

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

  • client/themes/default/components

client/themes/default/components/page.vue

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -537,13 +537,14 @@ export default {
537537
}
538538
},
539539
breadcrumbs() {
540-
return [{ path: '/', name: 'Home' }].concat(_.reduce(this.path.split('/'), (result, value, key) => {
541-
result.push({
542-
path: _.get(_.last(result), 'path', `/${this.locale}`) + `/${value}`,
543-
name: value
544-
})
545-
return result
546-
}, []))
540+
return [{ path: `/${this.locale}`, name: 'Home' }].concat(
541+
_.reduce(this.path.split('/'), (result, value) => {
542+
result.push({
543+
path: _.get(_.last(result), 'path') + `/${value}`,
544+
name: value
545+
})
546+
return result
547+
}, []))
547548
},
548549
pageUrl () { return window.location.href },
549550
upBtnPosition () {

0 commit comments

Comments
 (0)