diff --git a/src/components/Person.js b/src/components/Person.js index 7224308a..90b4dc4e 100644 --- a/src/components/Person.js +++ b/src/components/Person.js @@ -23,10 +23,11 @@ export default function Person({ person, currentTag }) { rel="noopener noreferrer" className="displayLink" href={person.url} - >{`${url.host}${url.pathname.slice( - 0, - url.pathname.lastIndexOf('/') - )}`} + >{`${url.host}${ + url.pathname.endsWith('/') + ? url.pathname.substr(0, url.pathname.length - 1) + : url.pathname + }`}

{person.description}