Merge pull request #18749 from nextcloud/fix/18746/use-encode-path
Use @nextcloud/paths for file sidebar
This commit is contained in:
commit
396275ab7a
5 changed files with 2 additions and 1 deletions
BIN
apps/files/js/dist/personal-settings.js
vendored
BIN
apps/files/js/dist/personal-settings.js
vendored
Binary file not shown.
BIN
apps/files/js/dist/personal-settings.js.map
vendored
BIN
apps/files/js/dist/personal-settings.js.map
vendored
Binary file not shown.
BIN
apps/files/js/dist/sidebar.js
vendored
BIN
apps/files/js/dist/sidebar.js
vendored
Binary file not shown.
BIN
apps/files/js/dist/sidebar.js.map
vendored
BIN
apps/files/js/dist/sidebar.js.map
vendored
Binary file not shown.
|
@ -63,6 +63,7 @@ import AppSidebar from 'nextcloud-vue/dist/Components/AppSidebar'
|
|||
import FileInfo from '../services/FileInfo'
|
||||
import LegacyTab from '../components/LegacyTab'
|
||||
import LegacyView from '../components/LegacyView'
|
||||
import { encodePath } from '@nextcloud/paths'
|
||||
|
||||
export default {
|
||||
name: 'Sidebar',
|
||||
|
@ -115,7 +116,7 @@ export default {
|
|||
*/
|
||||
davPath() {
|
||||
const user = OC.getCurrentUser().uid
|
||||
return OC.linkToRemote(`dav/files/${user}${encodeURIComponent(this.file)}`)
|
||||
return OC.linkToRemote(`dav/files/${user}${encodePath(this.file)}`)
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue