From c83eb255141e4cce12532081ea7b26821902f318 Mon Sep 17 00:00:00 2001 From: NGPixel Date: Sun, 27 Oct 2019 17:39:55 -0400 Subject: [PATCH] fix: breadcrumbs url formatting on 3rd level and higher + missing locale (#930) --- client/themes/default/components/page.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/themes/default/components/page.vue b/client/themes/default/components/page.vue index b8ff5449..d24b1539 100644 --- a/client/themes/default/components/page.vue +++ b/client/themes/default/components/page.vue @@ -345,9 +345,10 @@ export default { } }, breadcrumbs() { + console.info(this.locale) return [{ path: '/', name: 'Home' }].concat(_.reduce(this.path.split('/'), (result, value, key) => { result.push({ - path: _.map(result, 'path').join('/') + `/${value}`, + path: _.get(_.last(result), 'path', `/${this.locale}`) + `/${value}`, name: value }) return result