From 346a14635fac793b1033d149f5e6d37a16d5ce08 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Tue, 2 Jul 2019 18:27:13 -0400 Subject: [PATCH 1/2] Removed redirect to home on ui/index --- app/javascript/gabsocial/features/ui/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/javascript/gabsocial/features/ui/index.js b/app/javascript/gabsocial/features/ui/index.js index 5f62dca3..d27b854f 100644 --- a/app/javascript/gabsocial/features/ui/index.js +++ b/app/javascript/gabsocial/features/ui/index.js @@ -182,7 +182,7 @@ class SwitchingColumnsArea extends React.PureComponent { return ( - + {/* */} From 1c694c90d34c71f458424f81c5f61e497aee6840 Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Tue, 2 Jul 2019 19:01:24 -0400 Subject: [PATCH 2/2] Updated, Added all non webapp routes for service worker --- .../gabsocial/service_worker/entry.js | 30 +++++++++++++++---- 1 file changed, 24 insertions(+), 6 deletions(-) diff --git a/app/javascript/gabsocial/service_worker/entry.js b/app/javascript/gabsocial/service_worker/entry.js index 932f8548..e1412888 100644 --- a/app/javascript/gabsocial/service_worker/entry.js +++ b/app/javascript/gabsocial/service_worker/entry.js @@ -42,12 +42,30 @@ self.addEventListener('fetch', function(event) { return response; })); } else if ( - url.pathname.startsWith('/system/') || - url.pathname.startsWith('/api/') || - url.pathname.startsWith('/settings/') || - url.pathname.startsWith('/media/') || - url.pathname.startsWith('/admin/') || - url.pathname.startsWith('/about/')) { + url.pathname.startsWith('/system') || + url.pathname.startsWith('/api') || + url.pathname.startsWith('/settings') || + url.pathname.startsWith('/media') || + url.pathname.startsWith('/admin') || + url.pathname.startsWith('/about') || + url.pathname.startsWith('/auth') || + url.pathname.startsWith('/oauth') || + url.pathname.startsWith('/invites') || + url.pathname.startsWith('/pghero') || + url.pathname.startsWith('/sidekiq') || + url.pathname.startsWith('/filters') || + url.pathname.startsWith('/tags') || + url.pathname.startsWith('/emojis') || + url.pathname.startsWith('/inbox') || + url.pathname.startsWith('/accounts') || + url.pathname.startsWith('/user') || + url.pathname.startsWith('/users') || + url.pathname.startsWith('/src') || + url.pathname.startsWith('/public') || + url.pathname.startsWith('/avatars') || + url.pathname.startsWith('/authorize_follow') || + url.pathname.startsWith('/media_proxy') || + url.pathname.startsWith('/relationships')) { //non-webapp routes } else if (url.pathname.startsWith('/')) { // : TODO : if is /web