Skip to content

Commit

Permalink
Encode filter for url
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfdsilva committed Jul 24, 2023
1 parent 23e66ff commit 25b1bf6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 3 additions & 1 deletion app/scripts/components/data-catalog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,9 @@ function DataCatalog() {
as={Link}
to={`${DATASETS_PATH}?${
Actions.TAXONOMY
}=${JSON.stringify({ Topics: t.id })}`}
}=${encodeURIComponent(
JSON.stringify({ Topics: t.id })
)}`}
onClick={(e) => {
e.preventDefault();
onAction(Actions.TAXONOMY, {
Expand Down
9 changes: 7 additions & 2 deletions app/scripts/components/discoveries/hub/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ function DiscoveriesHub() {
sources={d.taxonomy.Source}
rootPath={DISCOVERIES_PATH}
onSourceClick={(id) => {
onAction(Actions.TAXONOMY, { key: 'Source', value: id });
onAction(Actions.TAXONOMY, {
key: 'Source',
value: id
});
browseControlsHeaderRef.current?.scrollIntoView();
}}
/>
Expand Down Expand Up @@ -246,7 +249,9 @@ function DiscoveriesHub() {
as={Link}
to={`${DISCOVERIES_PATH}?${
Actions.TAXONOMY
}=${JSON.stringify({ Topics: t.id })}`}
}=${encodeURIComponent(
JSON.stringify({ Topics: t.id })
)}`}
onClick={() => {
browseControlsHeaderRef.current?.scrollIntoView();
}}
Expand Down

0 comments on commit 25b1bf6

Please sign in to comment.