diff --git a/platypush/backend/http/webapp/src/components/File/Browser.vue b/platypush/backend/http/webapp/src/components/File/Browser.vue index dc41e1db39..4e7eabb1ca 100644 --- a/platypush/backend/http/webapp/src/components/File/Browser.vue +++ b/platypush/backend/http/webapp/src/components/File/Browser.vue @@ -134,6 +134,7 @@ export default { try { this.files = await this.request('file.list', {path: this.path}) this.$emit('path-change', this.path) + this.setUrlArgs({path: decodeURIComponent(this.path)}) } finally { this.loading = false } @@ -165,8 +166,16 @@ export default { }, mounted() { + const args = this.getUrlArgs() + if (args.path) + this.path = args.path + this.refresh() }, + + unmounted() { + this.setUrlArgs({path: null}) + }, }