I created template inherited from redirect, when i create item from this template i found that item name in item path have white space not "-" as items created from template inherited from page. any idea how to make item path correct and have no spaces between word without inherited from page??

  • 3
    I am not sure if SXA has space to dash built in, but I always use this jammykam.wordpress.com/2015/07/13/…. Its better than renaming in the link provider.
    – Chris Auer
    Sep 9, 2018 at 13:25
  • SXA used to handle a name change upon item creation. New versions will stop doing that as now it can be configured in Sitecore. Oct 12, 2018 at 5:59

1 Answer 1


in the sitecore config file there is a section: <encodeNameReplacements> you can add a line like this:

<replace mode="on" find=" " replaceWith="-"/>

That is how we have done it, and it works well

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.