mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Fix URL for subfolder assets (#15126)
* Prevent duplicate rootPath for image in file-preview * Add rootPath to file and file-image for downloading * Revert change to v-image * Patch rootPaths accordingly * Fix missing file name on download
This commit is contained in:
@@ -240,10 +240,10 @@ const confirmDelete = ref(false);
|
||||
const editActive = ref(false);
|
||||
const fileSrc = computed(() => {
|
||||
if (item.value && item.value.modified_on) {
|
||||
return getRootPath() + `assets/${props.primaryKey}?cache-buster=${item.value.modified_on}&key=system-large-contain`;
|
||||
return `assets/${props.primaryKey}?cache-buster=${item.value.modified_on}&key=system-large-contain`;
|
||||
}
|
||||
|
||||
return getRootPath() + `assets/${props.primaryKey}?key=system-large-contain`;
|
||||
return `assets/${props.primaryKey}?key=system-large-contain`;
|
||||
});
|
||||
|
||||
// These are the fields that will be prevented from showing up in the form because they'll be shown in the sidebar
|
||||
|
||||
Reference in New Issue
Block a user