From 3cd5d76fdb2926c74054d73ea589658c99e88c29 Mon Sep 17 00:00:00 2001 From: Jean-Louis Leysens Date: Tue, 28 Apr 2020 15:35:36 +0200 Subject: [PATCH] Remove encodeURI Already using encodingURIComponent for unsafe string. --- .../public/application/sections/pipelines_list/main.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_list/main.tsx b/x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_list/main.tsx index 81af24ffe6e4c6..2be9776ae06112 100644 --- a/x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_list/main.tsx +++ b/x-pack/plugins/ingest_pipelines/public/application/sections/pipelines_list/main.tsx @@ -68,16 +68,16 @@ export const PipelinesList: React.FunctionComponent = ({ }, [pipelineNameFromLocation, data]); const goToEditPipeline = (name: string) => { - history.push(encodeURI(`${BASE_PATH}/edit/${encodeURIComponent(name)}`)); + history.push(`${BASE_PATH}/edit/${encodeURIComponent(name)}`); }; const goToClonePipeline = (name: string) => { - history.push(encodeURI(`${BASE_PATH}/create/${encodeURIComponent(name)}`)); + history.push(`${BASE_PATH}/create/${encodeURIComponent(name)}`); }; const goHome = () => { setShowFlyout(false); - history.push(encodeURI(BASE_PATH)); + history.push(BASE_PATH); }; let content: React.ReactNode;