Преглед изворни кода

fix: include locale in sidebar browse links (#1807)

Co-authored-by: Mauro Frischherz <mauro.frischherz@eoscop.ch>
Mauro Frischherz пре 5 година
родитељ
комит
9e4ed7986c
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      client/themes/default/components/nav-sidebar.vue

+ 3 - 1
client/themes/default/components/nav-sidebar.vue

@@ -43,7 +43,7 @@
           v-list-item-avatar(size='24')
             v-icon mdi-folder
           v-list-item-title {{ item.title }}
-        v-list-item(v-else, :href='`/` + item.path', :key='`childpage-` + item.id', :input-value='path === item.path')
+        v-list-item(v-else, :href='`/` + item.locale + `/` + item.path', :key='`childpage-` + item.id', :input-value='path === item.path')
           v-list-item-avatar(size='24')
             v-icon mdi-text-box
           v-list-item-title {{ item.title }}
@@ -135,6 +135,7 @@ export default {
                 isFolder
                 pageId
                 parent
+                locale
               }
             }
           }
@@ -162,6 +163,7 @@ export default {
                 isFolder
                 pageId
                 parent
+                locale
               }
             }
           }