Fix route preview drawer policy name and link

This commit is contained in:
Matt Jacobson
2026-01-07 12:00:49 -05:00
parent 78f8acb056
commit 5a8696cf6b
2 changed files with 2 additions and 2 deletions
@@ -97,7 +97,7 @@ export function NotificationPolicyDrawer({
)}
</Stack>
<TextLink href={createRelativeUrl('/alerting/routes')} external inline={false}>
<TextLink href={createRelativeUrl(`/alerting/notifications/routes/${encodeURIComponent(policyName ?? '')}/edit`)} external inline={false}>
<Trans i18nKey="alerting.notification-policy-drawer.view-notification-policy-tree">
View notification policy tree
</Trans>
@@ -52,7 +52,7 @@ export const routeGroupsMatcher = {
.map((matchDetails) => ({
route,
routeTree: {
metadata: { name: 'user-defined' },
metadata: { name: routeTree.name },
expandedSpec: expandedTree,
},
matchDetails,