Skip to content

Commit

Permalink
Merge pull request #5122 from owncloud/18052021_fix-sidebar-via-path
Browse files Browse the repository at this point in the history
Fix indirect via-share in collaborator sidebar section
  • Loading branch information
Pascal Wengerter authored May 18, 2021
2 parents 540f83a + 15c3287 commit a23ebbf
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 a23ebbf

Please sign in to comment.