Remove extra dashes from url Options
rorythecheese
Posted: Wednesday, February 20, 2008 4:57:40 PM

Rank: Enthusiast

Joined: 2/15/2008
Posts: 37
Location: London, England

Hi, second question.

How would i go about altering umbraco so that when my nice urls are outputed that it doesnt change characters such as & to a dash/hyphen ( - ) ?

Because at the moment if my page title is "News & Events" then the url is news--events.aspx. I would like it just news-events.aspx if possible.


Cheerss.
tim
Posted: Wednesday, February 20, 2008 5:04:57 PM

Rank: Addict

Joined: 2/19/2007
Posts: 741
Location: Belgium
Take a look at the /config/umbracoSettings.config file

Standard you have:

Code:

<urlReplacing>
      <char org=" ">-</char>
      <char org="&quot;">
      </char>
      <char org=".">
      </char>
      <char org=";">
      </char>
      <char org="/">
      </char>
        <char org=":">
        </char>
        <char org="#">
        </char>
        <char org=",">
        </char>
        <char org="&amp;">
      </char>
      <char org="?">
      </char>
        <char org="æ">ae</char>
        <char org="ø">oe</char>
        <char org="å">aa</char>
        <char org="ä">ae</char>
        <char org="ö">oe</char>
        <char org="ü">ue</char>
        <char org="ß">ss</char>    
    </urlReplacing>


In your case the 2 spaces get converted to -

Umbraco tips and tricks: http://www.nibble.be - umbraco mvp 08/09 - certified level 1 & 2 professional
rorythecheese
Posted: Wednesday, February 20, 2008 5:27:08 PM

Rank: Enthusiast

Joined: 2/15/2008
Posts: 37
Location: London, England

ahh right, so it's the spaces not the &.

very helpful.


thanks.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.