mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
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:
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());
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user