Skip to content

Commit

Permalink
Fix for missing / in link to see publisher's datasets. (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexiscott authored Mar 26, 2021
1 parent 1e6479e commit 90c1afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/PublisherDatasetCountByName/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Link } from "@reach/router";

const PublisherDatasetCountByName = (props) => {
const { name, searchUrl, datasetCount} = props;
const link = searchUrl ? searchUrl : `search/?publisher__name=${name}`;
const link = searchUrl ? searchUrl : `/search/?publisher__name=${name}`;
let str;
if (datasetCount) {
str = (datasetCount === 1) ? '1 dataset' : `${datasetCount}x datasets`;
Expand Down

0 comments on commit 90c1afa

Please sign in to comment.