Merge pull request #18749 from nextcloud/fix/18746/use-encode-path
Use @nextcloud/paths for file sidebar
This commit is contained in:
commit
396275ab7a
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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 New Issue