File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
clients/admin-ui/src/pages/data-discovery/action-center/website/[monitorId]/[systemId] Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { useEffect } from "react";
55import FixedLayout from "~/features/common/FixedLayout" ;
66import {
77 ACTION_CENTER_ROUTE ,
8+ ACTION_CENTER_WEBSITE_MONITOR_ROUTE ,
89 UNCATEGORIZED_SEGMENT ,
910} from "~/features/common/nav/routes" ;
1011import 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
You can’t perform that action at this time.
0 commit comments