Skip to content

Commit 7ce5927

Browse files
committed
fix incorrect route (#6828)
1 parent 7aac45b commit 7ce5927

File tree

1 file changed

+7
-1
lines changed
  • clients/admin-ui/src/pages/data-discovery/action-center/website/[monitorId]/[systemId]

1 file changed

+7
-1
lines changed

clients/admin-ui/src/pages/data-discovery/action-center/website/[monitorId]/[systemId]/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { useEffect } from "react";
55
import FixedLayout from "~/features/common/FixedLayout";
66
import {
77
ACTION_CENTER_ROUTE,
8+
ACTION_CENTER_WEBSITE_MONITOR_ROUTE,
89
UNCATEGORIZED_SEGMENT,
910
} from "~/features/common/nav/routes";
1011
import PageHeader from "~/features/common/PageHeader";
@@ -31,7 +32,12 @@ const MonitorResultAssets: NextPage = () => {
3132
// if there are no results, redirect to the monitor page
3233
useEffect(() => {
3334
if (!!systemResults && systemResults.items.length === 0) {
34-
router.push(`${ACTION_CENTER_ROUTE}/${monitorId}`);
35+
router.push({
36+
pathname: ACTION_CENTER_WEBSITE_MONITOR_ROUTE,
37+
query: {
38+
monitorId: encodeURIComponent(monitorId),
39+
},
40+
});
3541
}
3642
}, [systemResults, router, monitorId]);
3743

0 commit comments

Comments
 (0)