I have an MVC application and the UI team has requested that urls for a careers page follow this format:
public ActionResult Detail(string jobTitle, string jobCode)
var model = getModelFromDb(JobCode);
What we ended up doing is passing both parameters to the controller(jobTitle and jobCode), looking up the record by jobCode, and validating that the record's slug matches the jobTitle passed in(all case insensitive). This way we prevent bogus urls from returning job detail pages and we keep the UI team happy.