Skip to content

Commit 97b162b

Browse files
committed
feat(dashboard): add documentation routing for template pages
1 parent 09deac7 commit 97b162b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

dashboard/src/utils/docs-url.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ export function getDocsUrl(pagePath: string): string {
2121
if (pagePath.startsWith('/settings')) {
2222
return `${DOCUMENTATION}/${normalizedLocale}/panel/settings`
2323
}
24+
if (pagePath === '/templates/client') {
25+
return `${DOCUMENTATION}/${normalizedLocale}/panel/client_template`
26+
}
27+
if (pagePath === '/templates/user') {
28+
return `${DOCUMENTATION}/${normalizedLocale}/panel/user_template`
29+
}
2430
// Map route paths to documentation paths
2531
const pathMap: Record<string, string> = {
2632
'/': 'dashboard',
@@ -30,7 +36,7 @@ export function getDocsUrl(pagePath: string): string {
3036
'/groups': 'groups',
3137
'/templates': 'user_template',
3238
'/admins': 'admins',
33-
'/admin-roles': 'admins',
39+
'/admin-roles': 'admin_roles',
3440
'/bulk': 'bulk',
3541
'/nodes/cores': 'core',
3642
}

0 commit comments

Comments
 (0)