diff --git a/_assets/src/components/DeletePrompt.vue b/_assets/src/components/DeletePrompt.vue index 820f3a57..97e581ea 100644 --- a/_assets/src/components/DeletePrompt.vue +++ b/_assets/src/components/DeletePrompt.vue @@ -31,7 +31,7 @@ export default { webdav.trash(window.location.pathname) .then(() => { // buttons.setDone('delete') - page.open(page.removeLastDir(window.location.pathname)) + page.open(page.removeLastDir(window.location.pathname) + '/') }) .catch(error => { // buttons.setDone('delete', false) diff --git a/_assets/src/components/Preview.vue b/_assets/src/components/Preview.vue index 3e748dba..653e4167 100644 --- a/_assets/src/components/Preview.vue +++ b/_assets/src/components/Preview.vue @@ -50,8 +50,7 @@ export default { return this.req.data.url + '?raw=true' }, back: function (event) { - let url = page.removeLastDir(window.location.pathname) - if (url === '') url = '/' + let url = page.removeLastDir(window.location.pathname) + '/' page.open(url) }, allowEdit: function (event) { diff --git a/_assets/src/components/Search.vue b/_assets/src/components/Search.vue index 16a19680..656e0d87 100644 --- a/_assets/src/components/Search.vue +++ b/_assets/src/components/Search.vue @@ -13,7 +13,7 @@
{{ text() }}