Enable deep navigation/routing to catalog (#2818)

* Enable route-based navigation to catalog items

Signed-off-by: Alex Culliere <alozhkin@mirantis.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>

* Enable custom protocol handle to process routing in catalog

Signed-off-by: Alex Culliere <alozhkin@mirantis.com>
Co-authored-by: Sebastian Malton <sebastian@malton.name>

* Fix type imports

Signed-off-by: Alex Culliere <alozhkin@mirantis.com>

Co-authored-by: Alex Culliere <alozhkin@mirantis.com>
This commit is contained in:
authored and GitHub committed 2021-05-20 15:57:56 +03:00
1 parent 1664b393ee
commit 27d230d12b
3 files changed
+41 -5

No files matched your search

@@ -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());
})