From e4e7c78ddbcd445d228adfee9a0e989d42989ce5 Mon Sep 17 00:00:00 2001 From: Buck Doyle Date: Fri, 19 Jun 2020 08:25:34 -0500 Subject: [PATCH] Add namespace to job navigation --- ui/app/components/global-search/control.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/app/components/global-search/control.js b/ui/app/components/global-search/control.js index 3b1b68129ad..1a061ba8943 100644 --- a/ui/app/components/global-search/control.js +++ b/ui/app/components/global-search/control.js @@ -92,7 +92,9 @@ export default class GlobalSearchControl extends Component { const itemModelName = model.constructor.modelName; if (itemModelName === 'job') { - this.router.transitionTo('jobs.job', model.name); + this.router.transitionTo('jobs.job', model.name, { + queryParams: { namespace: model.get('namespace.name') }, + }); } else if (itemModelName === 'node') { this.router.transitionTo('clients.client', model.id); }