diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-01-30 16:44:09 +0100 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-01-30 16:44:09 +0100 |
commit | 4e2b5afd837133022c91fd84987e519e54eb9372 (patch) | |
tree | 70152e52d9105e571ba09626d35956ca5580346b /src/main.js | |
parent | 403b574745182c6edf08b12546dad1e10614744d (diff) |
Automatically redirect if modRewriteWorking is supported
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src/main.js')
-rw-r--r-- | src/main.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main.js b/src/main.js index 8b5eed7a..0206aa93 100644 --- a/src/main.js +++ b/src/main.js @@ -55,9 +55,19 @@ sync(store, router) Vue.prototype.t = t Vue.prototype.n = n +// eslint-disable-next-line +Vue.prototype.oc_onfig = oc_config Vue.prototype.OC = OC Vue.prototype.OCA = OCA +if (window.location.pathname.split('/')[1] === 'index.php' + && oc_config.modRewriteWorking) { + router.push({ + name: 'group', + params: { selectedGroup: t('contacts', 'All contacts') } + }) +} + export default new Vue({ el: '#content', router, |