folder: redact hash on route change
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/653/merge
parent
857bcb8773
commit
d58c492fac
|
@ -58,7 +58,11 @@ export default defineComponent({
|
|||
}
|
||||
|
||||
path = [...path, this.data.name]; // intentional copy
|
||||
return { ...this.$route, params: { path } };
|
||||
return {
|
||||
...this.$route,
|
||||
params: { path },
|
||||
hash: undefined,
|
||||
};
|
||||
},
|
||||
|
||||
previews(): IPhoto[] {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div class="top-matter">
|
||||
<NcBreadcrumbs>
|
||||
<NcBreadcrumb :title="rootFolderName" :to="{ ...$route, params: { path: [] }, hash: undefined }">
|
||||
<NcBreadcrumb :title="rootFolderName" :to="getRoute([])">
|
||||
<template #icon>
|
||||
<template v-if="routeIsPublic">
|
||||
<ShareIcon :size="20" />
|
||||
|
@ -12,12 +12,7 @@
|
|||
</template>
|
||||
</template>
|
||||
</NcBreadcrumb>
|
||||
<NcBreadcrumb
|
||||
v-for="folder in list"
|
||||
:key="folder.idx"
|
||||
:title="folder.text"
|
||||
:to="{ ...$route, params: { path: folder.path }, hash: undefined }"
|
||||
/>
|
||||
<NcBreadcrumb v-for="folder in list" :key="folder.idx" :title="folder.text" :to="getRoute(folder.path)" />
|
||||
</NcBreadcrumbs>
|
||||
|
||||
<div class="right-actions">
|
||||
|
@ -117,6 +112,14 @@ export default defineComponent({
|
|||
},
|
||||
});
|
||||
},
|
||||
|
||||
getRoute(path: string[]) {
|
||||
return {
|
||||
...this.$route,
|
||||
params: { path },
|
||||
hash: undefined,
|
||||
};
|
||||
},
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue