Fix delete and preview back links when baseURL is domain root

Former-commit-id: 3507b4b3c04620666850f91d9805c2aba6b0922a [formerly 947d4eabaf424e08e1c98aa83485ecdc103a21ef] [formerly 9f645f718de412acfb25e74bec57520100b3b18f [formerly 5fd7429d5d]]
Former-commit-id: d6ce740e97e1e2fa83f75035ac0d8442e3d11b9e [formerly d0399d9beca23a92d4241ed1001923c9903ecba0]
Former-commit-id: 1e106c3c4d098ddeac69952f94d03d20c6327ab8
This commit is contained in:
Henrique Dias
2017-07-01 09:30:46 +01:00
parent f5ad28723c
commit b8a5b1500c
5 changed files with 10 additions and 29 deletions

View File

@@ -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) {