Skip to content

Commit

Permalink
Allow correct behavior moving back/forward in browser
Browse files Browse the repository at this point in the history
  • Loading branch information
sairina committed Mar 2, 2022
1 parent fcc472e commit f1fcc63
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kolibri/plugins/learn/assets/src/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,10 @@ export default [
if (!get(isUserLoggedIn) && to.fullPath === '/bookmarks') {
router.replace({ name: PageNames.BOOKMARKS, query: { next: url } });
store.commit('CORE_SET_ERROR', { response: { status: 403 } });
} else {
next();
} else if (!get(isUserLoggedIn)) {
store.commit('CORE_SET_ERROR', { response: { status: 403 } });
}
next();
},
handler: () => {
if (unassignedContentGuard()) {
Expand Down

0 comments on commit f1fcc63

Please sign in to comment.