Whenever I attempt to call RedirectManager.RedirectTo, I expect NavigationManager.NavigateTo(uri) to throw a NavigationException, which should be handled by the framework to facilitate the redirection to the specified URL.
However, instead of triggering the expected NavigationException, what gets triggered is an HtmxorNavigationException. This leads to an Object reference not set to an instance of an object error, which ultimately prevents the redirection from working properly when the Htmxor package is active.
Expected Behavior:
NavigationManager.NavigateTo(uri) should trigger the NavigationException, allowing the framework to handle the redirection seamlessly.
Actual Behavior:
- The
HtmxorNavigationException is thrown instead, causing a null reference error and breaking the redirection flow.
Steps to Reproduce:
- Attempt to call
RedirectManager.RedirectTo with Htmxor active.
- Observe that
NavigationException is not triggered, and redirection fails due to HtmxorNavigationException.