diff --git a/website/client/src/components/userMenu/profile.vue b/website/client/src/components/userMenu/profile.vue index 51818f9122..d228a5769b 100644 --- a/website/client/src/components/userMenu/profile.vue +++ b/website/client/src/components/userMenu/profile.vue @@ -759,6 +759,7 @@ import challenge from '@/assets/svg/challenge.svg'; import member from '@/assets/svg/member-icon.svg'; import staff from '@/assets/svg/tier-staff.svg'; import error404 from '../404'; +import externalLinks from '../../mixins/externalLinks'; import { userCustomStateMixin } from '../../mixins/userState'; // @TODO: EMAILS.COMMUNITY_MANAGER_EMAIL const COMMUNITY_MANAGER_EMAIL = 'admin@habitica.com'; @@ -772,7 +773,7 @@ export default { profileStats, error404, }, - mixins: [userCustomStateMixin('userLoggedIn')], + mixins: [externalLinks, userCustomStateMixin('userLoggedIn')], props: ['userId', 'startingPage'], data () { return { @@ -862,8 +863,12 @@ export default { mounted () { this.loadUser(); this.oldTitle = this.$store.state.title; + this.handleExternalLinks(); this.selectPage(this.startingPage); }, + updated () { + this.handleExternalLinks(); + }, beforeDestroy () { if (this.oldTitle) { this.$store.dispatch('common:setTitle', {