Application Security

Human Friendly MVC URLs

  Overview    The out-of-the-box MVC URL is not very readable to the end user. It usually looks like http://{domain}/{controller}/{action}/{id}, where the {id} is an integer matching the object in the database. Appending a ‘slug’ to the {id} is a quick, low-impact fix that greatly increases readability. The term slug comes from newspaper editing referring…