Search code examples
asp.net-mvcfriendly-urlslug

Replace chars in routeurl's?


I'm trying to add a "fullname" in the route in my url, and I wonder which chars I should replace? Should I use _ instead of space? and what other chars might "need" replacing?

Mostly gonna use swedish names, but some might have some strange letters, not icelandic ones though :)

/M


Solution

  • Here is how stackoverflow includes titles in the URL. It could help.