From f6caafba92cb6474dd511363184aeebba759f8d1 Mon Sep 17 00:00:00 2001 From: Matt Leathes Date: Wed, 9 Sep 2020 17:13:23 +0100 Subject: [PATCH] swap logic in ternary should only be calling getStartHash if start page is enabled fixes #2907 --- src/core/js/data.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/js/data.js b/src/core/js/data.js index 522b518bd..a609c0c4a 100644 --- a/src/core/js/data.js +++ b/src/core/js/data.js @@ -164,9 +164,7 @@ define([ Adapt.trigger('app:languageChanged', newLanguage); _.defer(() => { Adapt.startController.loadCourseData(); - const hash = Adapt.startController.isEnabled() ? - '#/' : - Adapt.startController.getStartHash(true); + const hash = Adapt.startController.isEnabled() ? Adapt.startController.getStartHash(true) : '#/'; Adapt.router.navigate(hash, { trigger: true, replace: true }); }); }