diff --git a/package.json b/package.json index 63952995..bc2412b2 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components/widgets/SearchResultsListWidget/MetadataCompact.tsx b/src/components/widgets/SearchResultsListWidget/MetadataCompact.tsx index 8a4e861e..ad325fdd 100644 --- a/src/components/widgets/SearchResultsListWidget/MetadataCompact.tsx +++ b/src/components/widgets/SearchResultsListWidget/MetadataCompact.tsx @@ -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={