refs #6153 test - master #86

Merged
jgallego merged 98 commits from test into master 2023-08-29 07:48:24 +00:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit 20c15020a0 - Show all commits

View File

@ -20,14 +20,15 @@ defineExpose({
const pinnedModules = computed(() => navigation.getPinnedModules());
async function redirect() {
if (route.path == '/dashboard') return (window.location.href = await getUrl(''));
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)
return (window.location.href = await getUrl(
`${section}/${route.params.id}/summary`
));
return (window.location.href = await getUrl(section + 'dashboard'));
return (window.location.href = await getUrl(section + '/index'));
}
</script>