Correctly handle the model URL for the detail view.