Commit c83eb255 authored by NGPixel's avatar NGPixel

fix: breadcrumbs url formatting on 3rd level and higher + missing locale (#930)

parent 28fdf140
...@@ -345,9 +345,10 @@ export default { ...@@ -345,9 +345,10 @@ export default {
} }
}, },
breadcrumbs() { breadcrumbs() {
console.info(this.locale)
return [{ path: '/', name: 'Home' }].concat(_.reduce(this.path.split('/'), (result, value, key) => { return [{ path: '/', name: 'Home' }].concat(_.reduce(this.path.split('/'), (result, value, key) => {
result.push({ result.push({
path: _.map(result, 'path').join('/') + `/${value}`, path: _.get(_.last(result), 'path', `/${this.locale}`) + `/${value}`,
name: value name: value
}) })
return result return result
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment