Blog posts by Kristoffer Jansson2017-04-04T21:15:00.0000000Z/blogs/kristoffer-jansson/Optimizely WorldRemove multiple dashes in Episerver automatic generated urlshttp://www.abunchofcode.com/remove-multiple-dashes-in-episerver-automatic-generated-urls/2017-04-04T21:15:00.0000000Z<p>When Episerver automatically generates url for a page in the CMS you will get multiple dashes (-) if there is a dash with a space before or after in the page name.</p>
<p><img src="http://www.abunchofcode.com/content/images/2017/01/with-multiple-dashes.png" alt="Episerver url with multiple dashes" /></p>
<p><img src="http://www.abunchofcode.com/content/images/2017/01/with-multiple-dashes2.png" alt="Episerver url with multiple dashes" /></p>
<p><img src="http://www.abunchofcode.com/content/images/2017/01/with-multiple-dashes3.png" alt="Episerver url with multiple dashes" /></p>
<p>If you don't like that there is a way to replace the multiple dashes with a single one</p>