Skip to content

Commit c9001c5

Browse files
authored
Merge pull request #5488 from Abhishek-Punhani/Issue5482
fix: redirect unauthenticated users from My Channels to public catalog
2 parents 2b71cfa + c608b80 commit c9001c5

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

contentcuration/contentcuration/frontend/accounts/pages/AccountsMain.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
<VDivider />
7878
<p class="mt-4 text-xs-center">
7979
<KButton
80-
href="/channels"
80+
href="/channels/#public"
8181
:text="$tr('guestModeLink')"
8282
appearance="basic-link"
8383
/>

contentcuration/contentcuration/frontend/channelList/views/ChannelListIndex.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,10 @@
235235
},
236236
watch: {
237237
$route(route) {
238-
if (this.loggedIn && route.name === RouteNames.CHANNELS_EDITABLE) {
239-
this.loadInvitationList();
238+
if (route.name === RouteNames.CHANNELS_EDITABLE) {
239+
this.loggedIn
240+
? this.loadInvitationList()
241+
: this.$router.replace({ name: RouteNames.CATALOG_ITEMS });
240242
}
241243
if (this.fullPageError) {
242244
this.$store.dispatch('errors/clearError');
@@ -251,9 +253,7 @@
251253
if (this.loggedIn) {
252254
this.loadInvitationList();
253255
} else if (!CATALOG_PAGES.includes(this.$route.name)) {
254-
this.$router.push({
255-
name: RouteNames.CATALOG_ITEMS,
256-
});
256+
this.$router.replace({ name: RouteNames.CATALOG_ITEMS });
257257
}
258258
},
259259
mounted() {

0 commit comments

Comments
 (0)