Skip to content

Commit

Permalink
Merge pull request owncloud#5122 from owncloud/18052021_fix-sidebar-v…
Browse files Browse the repository at this point in the history
…ia-path

Fix indirect via-share in collaborator sidebar section
  • Loading branch information
Pascal Wengerter authored and diocas committed May 19, 2021
2 parents a3392d9 + 0305a07 commit 620a661
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 620a661

Please sign in to comment.