diff --git a/apps/files/js/dist/personal-settings.js b/apps/files/js/dist/personal-settings.js
index f6bdc0d47124a561fc8aa7afdefd474492f83e2f..92e6c301bbe3ec0838b7d26ef086130e3e29b322 100644
Binary files a/apps/files/js/dist/personal-settings.js and b/apps/files/js/dist/personal-settings.js differ
diff --git a/apps/files/js/dist/personal-settings.js.map b/apps/files/js/dist/personal-settings.js.map
index c0d63723aeb588cb8f2e8885af693193098a482c..a9d923fffa229b9121c1571d6a0c65b636051235 100644
Binary files a/apps/files/js/dist/personal-settings.js.map and b/apps/files/js/dist/personal-settings.js.map differ
diff --git a/apps/files/js/dist/sidebar.js b/apps/files/js/dist/sidebar.js
index 40e3a652b51007bb5e87f73c2644c8930a32ac83..6ef200c3f86ab0da00f2ab70ba13e75b184b055c 100644
Binary files a/apps/files/js/dist/sidebar.js and b/apps/files/js/dist/sidebar.js differ
diff --git a/apps/files/js/dist/sidebar.js.map b/apps/files/js/dist/sidebar.js.map
index f303ef20bfc35afab61a2b7dee65b48c414ad680..1c4ddb5adc86c54edc98c0ca4649318114921a46 100644
Binary files a/apps/files/js/dist/sidebar.js.map and b/apps/files/js/dist/sidebar.js.map differ
diff --git a/apps/files/src/views/Sidebar.vue b/apps/files/src/views/Sidebar.vue
index a6723d345a19886403e4bf31bf115de9d64ba292..be6f8dee1f583b1c1d5cf86dff4016e7d89828cf 100644
--- a/apps/files/src/views/Sidebar.vue
+++ b/apps/files/src/views/Sidebar.vue
@@ -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)}`)
 		},
 
 		/**