From 6df7c4a4aa7e36ff8a1c99e13070573e514e655d Mon Sep 17 00:00:00 2001 From: Lukas Hirt Date: Thu, 9 Jul 2020 15:48:02 +0200 Subject: [PATCH] Fix location picker navigation to root --- apps/files/src/components/LocationPicker/LocationPicker.vue | 2 +- changelog/unreleased/location-picker-root-target | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/location-picker-root-target diff --git a/apps/files/src/components/LocationPicker/LocationPicker.vue b/apps/files/src/components/LocationPicker/LocationPicker.vue index 845cbd37394..79834ddb6ec 100644 --- a/apps/files/src/components/LocationPicker/LocationPicker.vue +++ b/apps/files/src/components/LocationPicker/LocationPicker.vue @@ -303,7 +303,7 @@ export default { return } - this.$router.push({ name: 'files-list', params: { item: target || '/ ' } }) + this.$router.push({ name: 'files-list', params: { item: target || '/' } }) }, async moveResources() { diff --git a/changelog/unreleased/location-picker-root-target b/changelog/unreleased/location-picker-root-target new file mode 100644 index 00000000000..0b541693e40 --- /dev/null +++ b/changelog/unreleased/location-picker-root-target @@ -0,0 +1,6 @@ +Bugfix: Fix navigation to the root folder from location picker + +The target location in the location picker was appending a whitespace when trying to go to root folder. +This resulted in an error when trying to load such folder. We've removed the whitespace to fix the navigation. + +https://github.com/owncloud/phoenix/pull/3756 \ No newline at end of file