diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-05-10 17:55:08 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2018-05-16 09:50:24 +0200 |
commit | a62c796f0709dacc332b7d9328e3f6ab151991f3 (patch) | |
tree | f707321be045956c54f819217d0ee44a2d7eff15 /settings/src/router.js | |
parent | 170746dadae678d02657515206ac4c96976c8173 (diff) | |
download | nextcloud-server-a62c796f0709dacc332b7d9328e3f6ab151991f3.tar.gz nextcloud-server-a62c796f0709dacc332b7d9328e3f6ab151991f3.zip |
Production build, router base url fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/src/router.js')
-rw-r--r-- | settings/src/router.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/settings/src/router.js b/settings/src/router.js index 783e466b94f..32893b188bb 100644 --- a/settings/src/router.js +++ b/settings/src/router.js @@ -15,6 +15,9 @@ Vue.use(Router); 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: window.location.pathname.indexOf('index.php') > 0 ? '/index.php/' : '/', routes: [ { path: '/:index(index.php/)?settings/users', |