Description
Is there an existing issue for this?
- I have searched the existing issues
Is your feature request related to a problem? Please describe the problem.
Seeing #50551 looks like too much magic for something that should have been be a simple data-interactive=false
(or enhance-nav=false
.) or even a simpler target="_top"
, specially for redirects. Also this will be a case by case basis, I don't believe you can have a sane default but to be everything the same way (on was a good default).
You also get double request to a non blazor get endpoint by default (no bueno) i firmly believe it's better to fail.
The developer will know better than any algorithm when to use fetch or not.
Describe the solution you'd like
I believe that a consistent fetch/cors error on a redirect/form post with an easy and simple "enhance-nav=false" fix would have been a better solution. I personally know my links/endpoints and I don't want the framework to play smart.
don't you believe that having to enable every other non-enhanced post form but only if it's post, will necessary makes the dev go through documentation to try to understand why one works but not others, i believe it will be a surprise for many.
Hotwire Turbo uses a simple data-turbo=false
approach, works great and even easily supports childs.
I think if you are going to stick with this "magic" default, five us some way to configure so we can make it consistent like,
EnhanceNavigation = EnhaceNavigation.None | EnhaceNavigation.All | etc
Additional context
No response