Standard URI encode names, fixes #761

This commit is contained in:
James Barnsley
2021-09-04 14:39:02 +12:00
parent 05225821e5
commit 3c2aa7d7b3

View File

@ -110,7 +110,7 @@ const GridItem = ({
to = item.link;
} else {
to = `/${item.type}/${encodeUri(item.uri)}`;
if (item.name && item.type !== 'artist') to += `/${item.name}`;
if (item.name && item.type !== 'artist') to += `/${encodeURIComponent(item.name)}`;
}
return (