From 0305a073a0ef9aaae0b0ecca0fe86c8fd47176b4 Mon Sep 17 00:00:00 2001 From: Pascal Wengerter Date: Tue, 18 May 2021 15:31:42 +0100 Subject: [PATCH] Fix shared-via indirect share path for collaborators --- changelog/unreleased/bugfix-navigate-to-share-parent | 8 ++++++++ .../src/components/Collaborators/Collaborator.vue | 8 ++------ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 changelog/unreleased/bugfix-navigate-to-share-parent diff --git a/changelog/unreleased/bugfix-navigate-to-share-parent b/changelog/unreleased/bugfix-navigate-to-share-parent new file mode 100644 index 00000000000..299210b067e --- /dev/null +++ b/changelog/unreleased/bugfix-navigate-to-share-parent @@ -0,0 +1,8 @@ +Bugfix: Correct navigation through "via"-tags + +The "shared via X" link in the indirect share tag in the sidebar was +navigating to the parent directory of the indirect share entry. +This has been fixed for the collaborators sidebar section and +the link target is the share entry itself now. + +https://github.com/owncloud/web/pull/5122 diff --git a/packages/web-app-files/src/components/Collaborators/Collaborator.vue b/packages/web-app-files/src/components/Collaborators/Collaborator.vue index 8d285085ae1..985f27cd4dd 100644 --- a/packages/web-app-files/src/components/Collaborators/Collaborator.vue +++ b/packages/web-app-files/src/components/Collaborators/Collaborator.vue @@ -175,7 +175,7 @@ import { mapGetters } from 'vuex' import moment from 'moment' import { shareTypes } from '../../helpers/shareTypes' -import { basename, dirname } from 'path' +import { basename } from 'path' import CollaboratorsMixins from '../../mixins/collaborators' import Mixins from '../../mixins' @@ -249,14 +249,10 @@ export default { }, viaRouterParams() { - const viaPath = this.collaborator.path return { name: 'files-personal', params: { - item: dirname(viaPath) || '/' - }, - query: { - scrollTo: basename(viaPath) + item: this.collaborator.path || '/' } } },