Skip to content

[feat] navigation handler hook for plugins #7306

@jhutchins

Description

@jhutchins

Describe the problem

I have some use cases where it would be useful for a plugin to be able to add a navigation handler for it own usage.

Describe the solution you'd like

I would like a with_navigation_handler function or similar added to the Plugin interface.

Alternatives considered

Something similar could probably be achieved by adding an event hook into wry that created a WindowEvent when navigation started and then using the pre-existing on_event method.

The on page load kind of works, but it only triggers after a page starts loading instead of preventing navigation.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions