Use the URN in to_param instead of the model's ID.