From aa7618486049f2363ee67d149d6d8511c6c2f1c4 Mon Sep 17 00:00:00 2001 From: Pavel Zavora Date: Tue, 22 Feb 2022 17:06:46 +0100 Subject: [PATCH] feat(ui): keep search parameters when exiting tickscript page --- ui/src/kapacitor/containers/TickscriptPage.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/src/kapacitor/containers/TickscriptPage.tsx b/ui/src/kapacitor/containers/TickscriptPage.tsx index e988e54ea..798236958 100644 --- a/ui/src/kapacitor/containers/TickscriptPage.tsx +++ b/ui/src/kapacitor/containers/TickscriptPage.tsx @@ -279,7 +279,9 @@ export class TickscriptPage extends PureComponent { router, } = this.props if (router.location.query?.l === 't') { - return router.push(`/sources/${sourceID}/tickscripts`) + return router.push( + `/sources/${sourceID}/tickscripts${router.location.search}` + ) } return router.push(`/sources/${sourceID}/alert-rules`) }