Skip to content

Commit

Permalink
fix(graph): fix 404 when / in name (#21318)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiongemi authored Jan 25, 2024
1 parent 66e8ec3 commit 4a4917b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions graph/client/src/app/ui-tooltips/graph-tooltip-display.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ export function TooltipDisplay() {
navigate(
routeConstructor(
{
pathname: `/project-details/${currentTooltip.props.id}`,
pathname: `/project-details/${encodeURIComponent(
currentTooltip.props.id
)}`,
},
false
)
Expand Down Expand Up @@ -68,7 +70,9 @@ export function TooltipDisplay() {
navigate(
routeConstructor(
{
pathname: `/project-details/${projectName}`,
pathname: `/project-details/${encodeURIComponent(
projectName
)}`,
search: `expanded=${targetName}`,
},
false
Expand Down

0 comments on commit 4a4917b

Please sign in to comment.