From 4e2b5afd837133022c91fd84987e519e54eb9372 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Wed, 30 Jan 2019 16:44:09 +0100 Subject: Automatically redirect if modRewriteWorking is supported MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- src/main.js | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main.js') 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, -- cgit v1.2.3