Fix route preview drawer policy name and link
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user