Skip to content

Commit

Permalink
ORION-2722: fix url encoding of path segement
Browse files Browse the repository at this point in the history
  • Loading branch information
nishant-handa committed Jan 23, 2024
1 parent 1a9d217 commit 87f7d76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/knowledge/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func getTypeUrl(fqtn string) string {
}

func getObjectUrl(fqtn, objId string) string {
return fmt.Sprintf("%v/objects/%s/%s", GetBaseUrl(), fqtn, url.QueryEscape(objId))
return fmt.Sprintf("%v/objects/%s/%s", GetBaseUrl(), fqtn, url.PathEscape(objId))
}

func getObjectListUrl(fqtn string) string {
Expand Down

0 comments on commit 87f7d76

Please sign in to comment.