diff --git a/webapp/src/components/CollectionTable.vue b/webapp/src/components/CollectionTable.vue index aa588e2db..5f55625cf 100644 --- a/webapp/src/components/CollectionTable.vue +++ b/webapp/src/components/CollectionTable.vue @@ -4,6 +4,7 @@ :data="collections" :data-type="'collections'" :global-filter-fields="['collection_id', 'title', 'creatorsList']" + :edit-page-route-prefix="collections" /> diff --git a/webapp/src/components/DynamicDataTable.vue b/webapp/src/components/DynamicDataTable.vue index 92ab31be2..70d99147c 100644 --- a/webapp/src/components/DynamicDataTable.vue +++ b/webapp/src/components/DynamicDataTable.vue @@ -228,9 +228,9 @@ export default { event.originalEvent.metaKey || event.originalEvent.altKey ) { - window.open(`/edit/${row.item_id}`, "_blank"); + window.open(`/${this.editPageRoutePrefix}/${row.item_id}`, "_blank"); } else { - this.$router.push(`/edit/${row.item_id}`); + this.$router.push(`/${this.editPageRoutePrefix}/${row.item_id}`); } }, getComponentProps(componentName, data) {