diff --git a/src/components/NavBar.vue b/src/components/NavBar.vue
index 6a8f916ea..ae4c4ceb5 100644
--- a/src/components/NavBar.vue
+++ b/src/components/NavBar.vue
@@ -64,6 +64,9 @@ const pinnedModulesRef = ref();
@click="pinnedModulesRef.redirect($route.params.id)"
icon="more_up"
>
+
+ {{ t('Go to Salix') }}
+
@@ -89,3 +92,10 @@ const pinnedModulesRef = ref();
+
+
+en:
+ Go to Salix: Go to Salix
+es:
+ Go to Salix: Ir a Salix
+
diff --git a/src/components/PinnedModules.vue b/src/components/PinnedModules.vue
index c9aecff60..52fe29d2c 100644
--- a/src/components/PinnedModules.vue
+++ b/src/components/PinnedModules.vue
@@ -24,17 +24,17 @@ async function redirect() {
let section = route.path.substring(1);
if (!route.path.includes('/')) return (window.location.href = await getUrl(section));
section = section.substring(0, section.indexOf('/'));
- if (route?.params?.id) {
- window.location.href = await getUrl(`${section}/${route.params.id}/summary`);
- } else {
- window.location.href = await getUrl(section + 'dashboard');
- }
+ if (route?.params?.id)
+ return (window.location.href = await getUrl(
+ `${section}/${route.params.id}/summary`
+ ));
+ return (window.location.href = await getUrl(section + 'dashboard'));
}
-