From 30a3bb31b3abfbcf917beb29353db302a199036a Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Sat, 4 Sep 2021 17:05:11 +1200 Subject: [PATCH] Just replace %, #761 --- src/js/components/GridItem.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/js/components/GridItem.js b/src/js/components/GridItem.js index 27d54705..82a450b1 100755 --- a/src/js/components/GridItem.js +++ b/src/js/components/GridItem.js @@ -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 (