diff --git a/ui/src/components/project/datasets/DatasetDownloadModal.vue b/ui/src/components/project/datasets/DatasetDownloadModal.vue
index 39091f525..1835a181a 100644
--- a/ui/src/components/project/datasets/DatasetDownloadModal.vue
+++ b/ui/src/components/project/datasets/DatasetDownloadModal.vue
@@ -144,6 +144,10 @@ const props = defineProps({
type: Object,
default: () => ({}),
},
+ projectSlug: {
+ type: String,
+ default: null,
+ },
});
// const emit = defineEmits(["update"]);
@@ -154,6 +158,10 @@ defineExpose({
});
const downloadURL = computed(() => {
+ // when projectSlug is present, open the filebrowser within the project context
+ if(props.projectSlug) {
+ return `${window.location.origin}/projects/${props.projectSlug}/datasets/${props.dataset.id}/filebrowser`;
+ }
return `${window.location.origin}/datasets/${props.dataset?.id}/filebrowser`;
});
diff --git a/ui/src/components/project/datasets/ProjectDatasetsTable.vue b/ui/src/components/project/datasets/ProjectDatasetsTable.vue
index 671ed77f6..0f140b5fe 100644
--- a/ui/src/components/project/datasets/ProjectDatasetsTable.vue
+++ b/ui/src/components/project/datasets/ProjectDatasetsTable.vue
@@ -164,7 +164,7 @@
/>
-
+