folder: preserve query during navigation
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/900/head
parent
b2e179ff43
commit
a305ddc4ad
|
@ -55,12 +55,8 @@ export default defineComponent({
|
||||||
path = path.split('/');
|
path = path.split('/');
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
path = [...path, this.data.name]; // intentional copy
|
||||||
name: this.$route.name,
|
return { ...this.$route, params: { path } };
|
||||||
params: {
|
|
||||||
path: [...path, this.data.name],
|
|
||||||
},
|
|
||||||
};
|
|
||||||
},
|
},
|
||||||
|
|
||||||
previews(): IPhoto[] {
|
previews(): IPhoto[] {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="top-matter">
|
<div class="top-matter">
|
||||||
<NcBreadcrumbs>
|
<NcBreadcrumbs>
|
||||||
<NcBreadcrumb :title="rootFolderName" :to="{ name: $route.name }">
|
<NcBreadcrumb :title="rootFolderName" :to="{ ...$route, params: { path: [] } }">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<template v-if="routeIsPublic">
|
<template v-if="routeIsPublic">
|
||||||
<ShareIcon :size="20" />
|
<ShareIcon :size="20" />
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
v-for="folder in list"
|
v-for="folder in list"
|
||||||
:key="folder.idx"
|
:key="folder.idx"
|
||||||
:title="folder.text"
|
:title="folder.text"
|
||||||
:to="{ name: $route.name, params: { path: folder.path } }"
|
:to="{ ...$route, params: { path: folder.path } }"
|
||||||
/>
|
/>
|
||||||
</NcBreadcrumbs>
|
</NcBreadcrumbs>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue