Browse Source

fix breadcrumb 'welcome' url

Olivier Massot 2 years ago
parent
commit
f9b2ba6e12
1 changed files with 2 additions and 2 deletions
  1. 2 2
      components/Layout/SubHeader/Breadcrumbs.vue

+ 2 - 2
components/Layout/SubHeader/Breadcrumbs.vue

@@ -19,7 +19,7 @@ const items: ComputedRef<Array<AnyJson>> = computed(() => {
 
   crumbs.push({
     title: i18n.t('welcome'),
-    href: runtimeConfig.baseUrlAdminLegacy
+    href: UrlUtils.join(runtimeConfig.baseUrlAdminLegacy, '#', 'dashboard')
   })
 
   const pathPart: Array<string> = UrlUtils.split(router.currentRoute.value.path)
@@ -27,7 +27,7 @@ const items: ComputedRef<Array<AnyJson>> = computed(() => {
   let path: string = ''
 
   pathPart.forEach((part) => {
-    path = `${path}/${part}`
+    path = UrlUtils.join(path, part)
 
     const match = router.resolve(path)