If you go to a url like the following: http://stackoverflow.com/questions/9155602/ the address bar will be updated to http://stackoverflow.com/questions/9
You are going to either need to do this in the application itself by checking the URL against the absolute URL for the requested location, or by generating the mapping each time a new "page" is added.