Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
Is it possible to have urlRewrite to only write out one - in the url even if there are more?
Since an blankspace in combination with & will transform into --
for example:
http://domain.se/this--test.aspx
Should instead be
http://domain.se/this-test.aspx
//kalle
I don't think it's possible, unless you go edit the Umbraco source, which normally isn't an option.
Do you mean to get Umbraco to generate that url, or to rewrite it using urlRewriting.net?
Either way. If there is a way for Umbraco to generate it would be great.
Try in the /config/umbracoSettings.config adding this at the end of the urlReplacing element:
<char org="--">-</char>
It's important that it is the last of the elements.
Thanks Morten, works just fine!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
urlRewrite to only write out one single "-" in url?
Hello,
Is it possible to have urlRewrite to only write out one - in the url even if there are more?
Since an blankspace in combination with & will transform into --
for example:
http://domain.se/this--test.aspx
Should instead be
http://domain.se/this-test.aspx
//kalle
I don't think it's possible, unless you go edit the Umbraco source, which normally isn't an option.
Do you mean to get Umbraco to generate that url, or to rewrite it using urlRewriting.net?
Either way. If there is a way for Umbraco to generate it would be great.
Try in the /config/umbracoSettings.config adding this at the end of the urlReplacing element:
It's important that it is the last of the elements.
Thanks Morten, works just fine!
is working on a reply...