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??
-
3I 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 AuerSep 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.– Alan PłócieniakOct 12, 2018 at 5:59
1 Answer
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