Strange behaviour in detailsview

Hi everyone, i am currently trying to implement a form of clone entity features in my project. So in a detailformview i have a button that when clicked should open the same detailformview with some fields compiled and the other empty. The problem is that the route change (it becomes /new) but all fields are filled with the previous entity (the one i want to clone ). Any help on this?

Hi, @f.canzonieri

Could you please provide a sample project to reproduce the issue?

Regards,
Maria.

ok solved i was making some mistakes