docs(app): redirect when module changes

Resolves #2840
This commit is contained in:
Benjamin Canac
2024-12-05 23:26:44 +01:00
parent b983ea2aec
commit 46f4e5a24d

View File

@@ -46,6 +46,8 @@ if (!import.meta.prerender) {
navigateTo(`${route.path.replace('/pro', '')}`)
} else if (page.value?.module === 'ui' && !route.path.includes('/pro')) {
navigateTo(`${route.path.replace(`/${framework.value}`, '')}/pro/${framework.value}`)
} else {
navigateTo(`/getting-started`)
}
}
})