Skip to content

NavigationManager.NavigateTo does not trigger NavigationException as expected, causing redirection failure when using Htmxor #64

@SimSef

Description

@SimSef

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:

  1. Attempt to call RedirectManager.RedirectTo with Htmxor active.
  2. Observe that NavigationException is not triggered, and redirection fails due to HtmxorNavigationException.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions