From 799d0e944a53f02dceadb30e5b9c47e280062731 Mon Sep 17 00:00:00 2001 From: haraldox Date: Fri, 19 Jan 2018 17:29:57 +0100 Subject: allow arbitrary routes in dev mode navigate to other routes in the console by typing `document.location.href = "#path/to/route"` --- src/stores/UserStore.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js index 09000dcdb..3a43668a7 100644 --- a/src/stores/UserStore.js +++ b/src/stores/UserStore.js @@ -237,7 +237,9 @@ export default class UserStore extends Store { && currentRoute.includes(this.BASE_ROUTE) && (this.hasCompletedSignup || this.hasCompletedSignup === null)) { - this.stores.router.push('/'); + if (!isDevMode) { + this.stores.router.push('/'); + } } }; -- cgit v1.2.3-70-g09d2