Skip to content

Commit

Permalink
fix(pnr): fix find node by routing
Browse files Browse the repository at this point in the history
ref: MANAGER-16190

Signed-off-by: Maxime Bajeux <[email protected]>
  • Loading branch information
Maxime Bajeux committed Nov 28, 2024
1 parent 07dbca4 commit 6c8230c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ hostedPrivateCloudUniverse.children = [
tag: NodeTag.NEW,
routing: {
application: 'hycu',
hash: '',
hash: '#/',
},
features: ['hycu'],
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ export const findNodeByRouting = (root: Node, locationPath: string) => {
const nodePath = node.routing.hash
? node.routing.hash.replace('#', node.routing.application)
: '/' + node.routing.application;
const parsedPath = splitPathIntoSegmentsWithoutRouteParams(nodePath);
const parsedPath = splitPathIntoSegmentsWithoutRouteParams(nodePath).map((path) => path.includes('/') ? path.replace('/', '') : path);

return {
value: parsedPath.reduce(
(acc: boolean, segment: string) => {
Expand Down

0 comments on commit 6c8230c

Please sign in to comment.