Skip to content

Commit

Permalink
Redirect signed-in learners to the home page
Browse files Browse the repository at this point in the history
  • Loading branch information
MisRob committed Sep 14, 2021
1 parent b647f5b commit 430d4a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kolibri/plugins/learn/assets/src/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ export default [
const { memberships } = store.state;
const { canAccessUnassignedContent } = store.getters;

// If a registered user, go to Classes Page, else go to Content
// If a registered user, go to Home Page, else go to Content
return router.replace({
name:
memberships.length > 0 || !canAccessUnassignedContent
? ClassesPageNames.ALL_CLASSES
? PageNames.HOME
: PageNames.TOPICS_ROOT,
});
},
Expand Down

0 comments on commit 430d4a3

Please sign in to comment.