diff --git a/web/satellite/src/components/header/projectsDropdown/ProjectDropdown.vue b/web/satellite/src/components/header/projectsDropdown/ProjectDropdown.vue index 25783a18c..df0eea5dc 100644 --- a/web/satellite/src/components/header/projectsDropdown/ProjectDropdown.vue +++ b/web/satellite/src/components/header/projectsDropdown/ProjectDropdown.vue @@ -119,7 +119,10 @@ export default class ProjectDropdown extends Vue { * Route to projects list page. */ public onProjectsLinkClick(): void { - this.$router.push(RouteConfig.ProjectsList.path); + if (this.$route.name !== RouteConfig.ProjectsList.name) { + this.$router.push(RouteConfig.ProjectsList.path); + } + this.$emit('close'); } diff --git a/web/satellite/src/components/header/settingsDropdown/SettingsDropdown.vue b/web/satellite/src/components/header/settingsDropdown/SettingsDropdown.vue index e4b9f1d71..3c3fe7be2 100644 --- a/web/satellite/src/components/header/settingsDropdown/SettingsDropdown.vue +++ b/web/satellite/src/components/header/settingsDropdown/SettingsDropdown.vue @@ -61,7 +61,10 @@ export default class SettingsDropdown extends Vue { * Redirects to account settings page. */ public onAccountSettingsClick(): void { - this.$router.push(RouteConfig.Account.with(RouteConfig.Settings).path); + if (this.$route.name !== RouteConfig.Settings.name) { + this.$router.push(RouteConfig.Account.with(RouteConfig.Settings).path); + } + this.closeDropdown(); } @@ -69,7 +72,10 @@ export default class SettingsDropdown extends Vue { * Redirects to billing page. */ public onBillingClick(): void { - this.$router.push(RouteConfig.Account.with(RouteConfig.Billing).path); + if (this.$route.name !== RouteConfig.Billing.name) { + this.$router.push(RouteConfig.Account.with(RouteConfig.Billing).path); + } + this.closeDropdown(); }