Just replace %, #761

This commit is contained in:
James Barnsley
2021-09-04 17:05:11 +12:00
parent 3c2aa7d7b3
commit 30a3bb31b3

View File

@ -110,7 +110,10 @@ const GridItem = ({
to = item.link;
} else {
to = `/${item.type}/${encodeUri(item.uri)}`;
if (item.name && item.type !== 'artist') to += `/${encodeURIComponent(item.name)}`;
if (item.name && item.type !== 'artist') {
// Strip out "%"; this causes conflicts with our uri decoder
to += `/${item.name.replace('%','')}`;
}
}
return (