diff --git a/src/components/NextPrevious/NextPrevious.js b/src/components/NextPrevious/NextPrevious.js index 28393b8fdd..0c7d706db0 100644 --- a/src/components/NextPrevious/NextPrevious.js +++ b/src/components/NextPrevious/NextPrevious.js @@ -23,7 +23,7 @@ export default class NextPrevious extends React.Component { * e.g.converts "Item Name" to "item-name" */ titleToSlug = string => { - if (string) return string.toLowerCase().replace(' ', '-'); + if (string) return string.toLowerCase().replace(/[ ]/g, '-'); }; /**