summaryrefslogtreecommitdiffstats
path: root/settings/src/router.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-05-10 17:55:08 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-05-16 09:50:24 +0200
commita62c796f0709dacc332b7d9328e3f6ab151991f3 (patch)
treef707321be045956c54f819217d0ee44a2d7eff15 /settings/src/router.js
parent170746dadae678d02657515206ac4c96976c8173 (diff)
downloadnextcloud-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.js3
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',