diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-12 23:03:06 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-11-12 23:03:06 +0100 |
commit | 77975d53d77ba0c928fa54b6a4771ee3475b6aad (patch) | |
tree | b3a66a8a7bda11e3beb9e4092b06270c62d940e6 /src/router | |
parent | b1cc367a0d5aba87c336661a2ee97c2cc8e688bf (diff) |
Use nextcloud-server to fix router base
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/router')
-rw-r--r-- | src/router/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/router/index.js b/src/router/index.js index 4fff3af6..574407b0 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -22,6 +22,7 @@ import Vue from 'vue' import Router from 'vue-router' +import { generateFilePath } from 'nextcloud-server/dist/router' import Contacts from 'Views/Contacts' Vue.use(Router) @@ -30,7 +31,7 @@ export default new Router({ mode: 'history', // if index.php is in the url AND we got this far, then it's working: // let's keep using index.php in the url - base: OC.generateUrl('/apps/contacts'), + base: generateFilePath('contacts', '', ''), linkActiveClass: 'active', routes: [ { |