Skip to content

Commit

Permalink
Fix shared-via indirect share path for collaborators
Browse files Browse the repository at this point in the history
  • Loading branch information
pascalwengerter authored and diocas committed May 19, 2021
1 parent 4e88d7d commit 0305a07
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 8 additions & 0 deletions changelog/unreleased/bugfix-navigate-to-share-parent
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -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 || '/'
}
}
},
Expand Down

0 comments on commit 0305a07

Please sign in to comment.