Skip to content

Commit 4525a26

Browse files
committed
Fix: added route check for assistedLearning [ADAPT-13189]
1 parent 24c3236 commit 4525a26

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

js/adapt-pageIncompletePrompt.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ class PageIncompletePrompt extends Backbone.Controller {
7575
onRouterNavigate(routeArguments) {
7676
if (!this.isEnabled() || this.pageModel.get('_isComplete')) return;
7777

78+
// Allow nav to assisted learning revision page
79+
const routePath = routeArguments[0] || '';
80+
if (routePath === 'assistedlearning') return;
81+
7882
this.href = /#/.test(window.location.href) ?
7983
window.location.href :
8084
window.location.href + '#';

0 commit comments

Comments
 (0)