diff --git a/ayanova/src/views/notfound.vue b/ayanova/src/views/notfound.vue index 7974c3a7..497a5224 100644 --- a/ayanova/src/views/notfound.vue +++ b/ayanova/src/views/notfound.vue @@ -23,12 +23,16 @@ export default { created() { // debugger; var badPath = this.$router.history.current.path; - //If this happens too early then it might not have all the setup stuf available - if (!window || !window.$gz || !window.$gz.eventBus || !window.$gz.locale) { - //debugger; + //If this happens too early then it might not have all the setup stuf available which would trigger an infinite loop + if ( + !window || + !window.$gz || + !window.$gz.eventBus || + !window.$gz.locale || + !window.$gz.store + ) { this.msg = '404 - NOT FOUND: "' + badPath + '"'; } else { - //debugger; var notFoundLocalized = window.$gz.locale.get("ErrorAPI2010"); //format the message this.msg = "404 - " + notFoundLocalized + ': "' + badPath + '"'; @@ -42,11 +46,5 @@ export default { }); } } - // , - // beforeRouteEnter(to, from, next) { - // //debugger; - // badPath = to.path; - // next(); - // } };