fix(graph): fix 404 when / in name (#21318)

This commit is contained in:
Emily Xiong 2024-01-25 10:35:56 -05:00 committed by GitHub
parent 66e8ec3e2a
commit 4a4917b628
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,9 @@ export function TooltipDisplay() {
navigate(
routeConstructor(
{
pathname: `/project-details/${currentTooltip.props.id}`,
pathname: `/project-details/${encodeURIComponent(
currentTooltip.props.id
)}`,
},
false
)
@ -68,7 +70,9 @@ export function TooltipDisplay() {
navigate(
routeConstructor(
{
pathname: `/project-details/${projectName}`,
pathname: `/project-details/${encodeURIComponent(
projectName
)}`,
search: `expanded=${targetName}`,
},
false