diff --git a/packages/builder/src/builderStore/store/screenTemplates/sanitizeUrl.js b/packages/builder/src/builderStore/store/screenTemplates/sanitizeUrl.js index eab985c0a5..96b7633e41 100644 --- a/packages/builder/src/builderStore/store/screenTemplates/sanitizeUrl.js +++ b/packages/builder/src/builderStore/store/screenTemplates/sanitizeUrl.js @@ -4,7 +4,7 @@ export default function(url) { .map(part => { // if parameter, then use as is if (part.startsWith(":")) return part - return encodeURIComponent(part.replace(" ", "-")) + return encodeURIComponent(part.replace(/ /g, "-")) }) .join("/") .toLowerCase()