Merge pull request #18749 from nextcloud/fix/18746/use-encode-path

Use @nextcloud/paths for file sidebar
This commit is contained in:
Roeland Jago Douma 2020-01-08 16:34:11 +01:00 committed by GitHub
commit 396275ab7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 21 deletions

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

View File

@ -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)}`)
},
/**