Episerver

Remove multiple dashes in Episerver automatic generated urls

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. If you don't like that there is a way to replace the multiple dashes with a single one by creating an Initialization module and hook up on the event which is fired after the url is created. The pre Episerver v10 way to do this was using the UrlSegment class and hooking up on the CreatedUrlSegment event and…

Keep reading