From 04faa2097ad8fe9a494343e1d78b52fd08df0527 Mon Sep 17 00:00:00 2001 From: Henry Whitaker Date: Thu, 21 May 2020 00:21:38 +0100 Subject: [PATCH] Made handling of wrong base URL more graceful --- resources/js/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/resources/js/index.js b/resources/js/index.js index cc7e57ae..e440c451 100644 --- a/resources/js/index.js +++ b/resources/js/index.js @@ -33,9 +33,6 @@ export default class Index extends Component { loading: false, redirect: true, }); - if(window.location.pathname != window.config.base) { - window.location.href = window.config.base; - } }) } @@ -49,7 +46,7 @@ export default class Index extends Component { ); } else { - if(baseSet) { + if(baseSet && window.config.base) { return ( ()} />