diff --git a/changelog/unreleased/bugfix-shared-with-others-and-via-link-resource-links b/changelog/unreleased/bugfix-shared-with-others-and-via-link-resource-links new file mode 100644 index 00000000000..8c07cfd2c75 --- /dev/null +++ b/changelog/unreleased/bugfix-shared-with-others-and-via-link-resource-links @@ -0,0 +1,6 @@ +Bugfix: "Shared with others" and "Shared via Link" resource links not working + +We've fixed a bug where resource links in "Shared with others" and "Shared via Link" page stopped working. + +https://github.com/owncloud/web/pull/7308 +https://github.com/owncloud/web/issues/7303 diff --git a/packages/web-app-files/src/components/FilesList/ResourceTable.vue b/packages/web-app-files/src/components/FilesList/ResourceTable.vue index edb1aea9e70..74c532538e8 100644 --- a/packages/web-app-files/src/components/FilesList/ResourceTable.vue +++ b/packages/web-app-files/src/components/FilesList/ResourceTable.vue @@ -601,11 +601,12 @@ export default defineComponent({ ...this.targetRoute.query } + const matchingSpace = this.getMatchingSpace(resource.storageId) + if (this.hasProjectSpaces) { - const matchingSpace = this.getMatchingSpace(resource.storageId) if (matchingSpace?.driveType === 'project') { return createLocationSpaces('files-spaces-project', { - params, + params: { ...params, storageId: matchingSpace?.id || params.storageId }, query }) } @@ -613,7 +614,7 @@ export default defineComponent({ return { name: this.targetRoute.name, - params, + params: { ...params, storageId: matchingSpace?.id || params.storageId }, query } },