diff --git a/website/client/src/components/userMenu/profile.vue b/website/client/src/components/userMenu/profile.vue index ce08138dba..2d76148b32 100644 --- a/website/client/src/components/userMenu/profile.vue +++ b/website/client/src/components/userMenu/profile.vue @@ -789,7 +789,7 @@ export default { this.user = user; }, selectPage (page) { - this.selectedPage = page; + this.selectedPage = page || 'profile'; window.history.replaceState(null, null, ''); }, sendMessage () { diff --git a/website/client/src/components/userMenu/profilePage.vue b/website/client/src/components/userMenu/profilePage.vue index 19151d9e29..fedc82a0df 100644 --- a/website/client/src/components/userMenu/profilePage.vue +++ b/website/client/src/components/userMenu/profilePage.vue @@ -24,6 +24,12 @@ export default { components: { profile, }, - props: ['userId', 'startingPage'], + props: { + userId: String, + startingPage: { + type: String, + default: 'profile', + }, + }, };