Skip to content

Commit

Permalink
avoid adding base path twice
Browse files Browse the repository at this point in the history
fixed #1165
  • Loading branch information
otbe committed Feb 17, 2025
1 parent 831081f commit 3660e24
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions eventcatalog/src/components/SideNav/TreeView/getTreeView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ function forEachTreeNodeOf(node: TreeNode, ...callbacks: Array<(node: TreeNode)
function addHrefToNode(basePathname: 'docs' | 'visualiser') {
return (node: TreeNode) => {
node.href = encodeURI(
buildUrl(
`/${basePathname}/${node.type}/${node.id}${node.type === 'teams' || node.type === 'users' ? '' : `/${node.version}`}`
)
buildUrl(`/${node.type}/${node.id}${node.type === 'teams' || node.type === 'users' ? '' : `/${node.version}`}`)
);
};
}
Expand Down

0 comments on commit 3660e24

Please sign in to comment.