Skip to content

Commit

Permalink
fix(SearchResults): encode IRI
Browse files Browse the repository at this point in the history
  • Loading branch information
jusa3 committed May 15, 2024
1 parent 78728be commit 53cd9fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@
"@storybook/react-webpack5": "^7.6.7",
"@storybook/storybook-deployer": "^2.8.16",
"@storybook/testing-library": "^0.2.2",
"@ts4nfdi/esbuild-dynamic-import": "2.0.1",
"@ts4nfdi/gh-pages-multi": "^0.7.9",
"@types/node": "^17.0.36",
"@types/react": "^17.0.45",
"@types/react-dom": "17.0.11",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"@ts4nfdi/esbuild-dynamic-import": "2.0.1",
"@ts4nfdi/gh-pages-multi": "^0.7.9",
"@zbmed/ols-treeview": "^4.1.7",
"axios": "^1.1.2",
"cross-env": "^7.0.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function MetadataCompact(props: MetadataCompactProps) {
{...rest}
href={targetLink ?
(result.type != "ontology" ?
targetLink + "ontologies/" + result.ontology_name + "/" + pluralizeType(result.type, true) + "?iri=" + result.iri
targetLink + "ontologies/" + result.ontology_name + "/" + pluralizeType(result.type, true) + "?iri=" + encodeURIComponent(result.iri)
: targetLink + "ontologies/" + result.ontology_name)
: undefined}
title={
Expand Down

0 comments on commit 53cd9fd

Please sign in to comment.