I would like to know how to implement a URL slug functionality in a website, without having the ID of the record currently being viewed show up in the URL.
For example, StackOverflow URLs look like this: http://stackoverflow.com/questions/3099232/mvc-dynamic-views-from-url-slug. Notice the URL contains the ID of the record. If I were to bookmark this page, and for some reason the ID of the record changed, I would not be able to look at this record in the future.
I want to implement a URL slug functionality that doesn't depend on the ID of the record, so it will look something like http://stackoverflow.com/questions/mvc-dynamic-views-from-url-slug.
Can you please provide steps for achieving this? Do you use the title of the record and sluggify it, save that slug, and never change it again?
A sample URL of what I am looking for is this http://weblogs.asp.net/scottgu/archive/2010/10/04/jquery-templates-data-link-and-globalization-accepted-as-official-jquery-plugins.aspx (Notice no ID in the URL)
Thanks!