summaryrefslogtreecommitdiffstats
path: root/src/main.js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-01-30 16:44:09 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2019-01-30 16:44:09 +0100
commit4e2b5afd837133022c91fd84987e519e54eb9372 (patch)
tree70152e52d9105e571ba09626d35956ca5580346b /src/main.js
parent403b574745182c6edf08b12546dad1e10614744d (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.js10
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,