Either calls the next agent in chain, or applies the final navigation target if this agent is the last one. Not calling this function effectively prevents navigation. Accepts an optional Target parameter. The original target will be used instead when omitted.
When navigation occurred. Either pretend
, pre-open
, or pre-replace
.
The page to leave.
Navigation target page.
Generated using TypeDoc
Navigation agent signature.
The agent is called by navigation methods when leaving current page and may alter navigation processing. E.g. change navigation target. For that it should be registered in appropriate context.
All registered agents are organized into chain. The first agent in chain is called by navigation method.