diff --git a/contentcuration/contentcuration/frontend/accounts/pages/AccountsMain.vue b/contentcuration/contentcuration/frontend/accounts/pages/AccountsMain.vue index bdd7a243c7..a5860cbbbe 100644 --- a/contentcuration/contentcuration/frontend/accounts/pages/AccountsMain.vue +++ b/contentcuration/contentcuration/frontend/accounts/pages/AccountsMain.vue @@ -77,7 +77,7 @@

diff --git a/contentcuration/contentcuration/frontend/channelList/views/ChannelListIndex.vue b/contentcuration/contentcuration/frontend/channelList/views/ChannelListIndex.vue index 2cfba838f8..e7d563d342 100644 --- a/contentcuration/contentcuration/frontend/channelList/views/ChannelListIndex.vue +++ b/contentcuration/contentcuration/frontend/channelList/views/ChannelListIndex.vue @@ -235,8 +235,10 @@ }, watch: { $route(route) { - if (this.loggedIn && route.name === RouteNames.CHANNELS_EDITABLE) { - this.loadInvitationList(); + if (route.name === RouteNames.CHANNELS_EDITABLE) { + this.loggedIn + ? this.loadInvitationList() + : this.$router.replace({ name: RouteNames.CATALOG_ITEMS }); } if (this.fullPageError) { this.$store.dispatch('errors/clearError'); @@ -251,9 +253,7 @@ if (this.loggedIn) { this.loadInvitationList(); } else if (!CATALOG_PAGES.includes(this.$route.name)) { - this.$router.push({ - name: RouteNames.CATALOG_ITEMS, - }); + this.$router.replace({ name: RouteNames.CATALOG_ITEMS }); } }, mounted() {