I have tried many other codes including asp-page-handler, form submit, etc, but the button execute the onget method instead of the cancel method.
For now with the ajax I use window.location.replace('/index_bis'); which works but I am not a fan.
I am still opened to more scalable solution.
I don't know why is it so hard to just call a method in the code behind related to the current razor view