From 493302a70cd562cc6b086bf48eddbe0fb5efd54c Mon Sep 17 00:00:00 2001 From: Alex Culliere Date: Wed, 19 May 2021 18:06:39 +0300 Subject: [PATCH] Enable custom protocol handle to process routing in catalog Signed-off-by: Alex Culliere --- src/renderer/protocol-handler/app-handlers.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/renderer/protocol-handler/app-handlers.ts b/src/renderer/protocol-handler/app-handlers.ts index 0e5e2f3ee6..bbd91ab19b 100644 --- a/src/renderer/protocol-handler/app-handlers.ts +++ b/src/renderer/protocol-handler/app-handlers.ts @@ -43,6 +43,13 @@ export function bindProtocolAddRouteHandlers() { .addInternalHandler("/landing", () => { navigate(catalogURL()); }) + .addInternalHandler("/landing/view/:group/:kind", ({ pathname: { group, kind } }) => { + navigate(catalogURL({ + params: { + group, kind + } + })); + }) .addInternalHandler("/cluster", () => { navigate(addClusterURL()); })