Re: Rewrite spaces in URL

Splash Forums PrettyFaces Users Rewrite spaces in URL Re: Rewrite spaces in URL

#21453

BTW: Perhaps %20 isn’t “pretty”, but it’s the correct representation of an space character in URLs.

Another idea. You could simply add another property to your category model object containing some kind of “URL category name”. For example the name lowercased and all spaces replaced by underscores. If you could also make sure that the URL category name is unique, you can easily use it in URL parameters because you can lookup a category by the unique name from the database.